快捷搜索: 王者荣耀 脱发

Centos 6/7 x86_64 系统开启TCP-BBR拥塞控制一键安装脚本

内核特点

1、使用自编译好的内核;

2、无需手动修改grub启动项;

3、已经默认设置拥塞算法为BBR,无需额外设置,重启即可用

脚本一键安装

wget -O- https://soft.alphabrock.cn/Linux/scripts/bbr_centos_6_7_x86_64.sh | bash

安装完成重启

reboot

验证安装是否成功

sysctl -a|grep tcp_congestion_control

正常情况会是这样:

net.ipv4.tcp_congestion_control = bbr

Tips:若机子未开启IPV6,在验证步骤会出现以下错误,请忽略

error: "Input/output error" reading key "net.ipv6.conf.all.stable_secret"
         
  error: "Input/output error" reading key "net.ipv6.conf.default.stable_secret"
         
  error: "Input/output error" reading key "net.ipv6.conf.eth0.stable_secret"
         
  error: "Input/output error" reading key "net.ipv6.conf.eth1.stable_secret"
         
  error: "Input/output error" reading key "net.ipv6.conf.lo.stable_secret"
经验分享 程序员 微信小程序 职场和发展