欢迎光临
一起探讨学习进步

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

内核特点:

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

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

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

脚本一键安装

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh &
& ./bbr.sh

安装完成重启

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"

或者输入:

lsmod | grep bbr

会输出:

tcp_bbr 16384 12

有进程,有端口号,说明就成功了

未经允许不得转载:Centos 6/7 x86_64 系统开启TCP-BBR拥塞控制一键安装脚本

评论 0

评论前必须登录!