內核特點
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"