内核特点:
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
有进程,有端口号,说明就成功了