CentOS 6,Debian 7,Ubuntu 12这些系统的内核一般在Linux 4.9以下,并无内置BBR加速,所以需要手动安装
BBR一键安装脚本
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
如果提示 bash: wget: command not found , 使用命令安装: yum -y install wget
检查BBR是否安装成功
uname -r
# 如果显示的内核版本是最新的(超过4.9),说明已安装成功.
sysctl net.ipv4.tcp_available_congestion_control
# 反馈的结果
# net.ipv4.tcp_available_congestion_control = reno cubic bbr 或者
# net.ipv4.tcp_available_congestion_control = bbr cubic reno
sysctl net.ipv4.tcp_congestion_control
# net.ipv4.tcp_congestion_control = bbr
sysctl net.core.default_qdisc
# net.core.default_qdisc = fq
lsmod | grep bbr
# 如果显示类似tcp_bbr加一串数字的,如tcp_bbr 0480 4 ,说明BBR模块已启动。
卸载原版内核headers
yum remove kernel-headers
安装新版内核headers
yum --enablerepo=elrepo-kernel -y install kernel-ml-headers