Linux 高于4.9内核 开启bbr方法 -网络加速锐速

技术文章11个月前更新 gyx131
355 0 0

其他的加速插件,可能带有病毒木马,建议用系统自带

BBR在新版本的系统中都已经包含了,只是默认没有开启

root权限,执行下面代码,直接开启。

先查看内核版本

  1. uname -r

系统内核高于4.9版本

  1. echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
  2. echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
  3. sysctl -p
  4. lsmod | grep bbr

低版本(低于4.9)的教程在下面,建议都升级新版本系统。

低于4.9内核的方式

  1. yum install wget
  2. wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
  3. 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
© 版权声明

相关文章

暂无评论

暂无评论...