Centos 6/7 x86_64 系統開啓TCP-BBR擁塞控制一鍵安裝腳本

 內核特點

1、使用自編譯好的內核;

2、無需手動修改grub啓動項;

3、已經默認設置擁塞算法爲BBR,無需額外設置,重啓即可用

    腳本一鍵安裝

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

    安裝完成重啓

  1. reboot

    驗證安裝是否成功

  1. sysctl -a|grep tcp_congestion_control

正常情況會是這樣:

  1. net.ipv4.tcp_congestion_control = bbr

Tips:若機子未開啓IPV6,在驗證步驟會出現以下錯誤,請忽略

  1. error: "Input/output error" reading key "net.ipv6.conf.all.stable_secret"
  2. error: "Input/output error" reading key "net.ipv6.conf.default.stable_secret"
  3. error: "Input/output error" reading key "net.ipv6.conf.eth0.stable_secret"
  4. error: "Input/output error" reading key "net.ipv6.conf.eth1.stable_secret"
  5. error: "Input/output error" reading key "net.ipv6.conf.lo.stable_secret"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章