其他的加速插件,可能带有病毒木马,建议用系统自带
BBR在新版本的系统中都已经包含了,只是默认没有开启
root权限,执行下面代码,直接开启。
先查看内核版本
-
uname -r
系统内核高于4.9版本
-
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
-
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
-
sysctl -p
-
lsmod | grep bbr
低版本(低于4.9)的教程在下面,建议都升级新版本系统。
低于4.9内核的方式
-
yum install wget
-
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
-
lsmod | grep bbr
直接执行
验证bbr是否开启
[root]# sysctl net.ipv4.tcp_available_congestion_control
# 验证 bbr 是否开启,如果成功,应该会看到 net.ipv4.tcp_congestion_control = bbr
# 如果成功,应该会看到类似 tcp_bbr 16384 3 这样的文字
[root]# sysctl net.ipv4.tcp_available_congestion_control net.ipv4.tcp_available_congestion_control = reno cubic bbr
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...