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"

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: