天天看点

linux8安装bbr_linux一键安装BBR PLUS 方法

linux8安装bbr_linux一键安装BBR PLUS 方法

BBRplus

脚本安装方法:

不要在生产环境使用一键脚本,建议手动安装,进不了系统用vnc切内核

一键脚本(仅CentOS):

wget "https://github.com/a8866051/bbrplus/raw/master/ok_bbrplus_centos.sh" && chmod +x ok_bbrplus_centos.sh && ./ok_bbrplus_centos.sh

PHP复制

安装后,执行uname -r,显示4.14.129-bbrplus则切换内核成功

执行lsmod | grep bbr,显示有bbrplus则开启成功

手动安装方法:

卸载本机的锐速(如果有)

下载内核

wget https://github.com/a8866051/bbrplus/raw/master/centos7/x86_64/kernel-4.14.129-bbrplus.rpm

PHP复制

安装内核

yum install -y kernel-4.14.129-bbrplus.rpm

PHP复制

切换启动内核

grub2-set-default 'CentOS Linux (4.14.129-bbrplus) 7 (Core)'

PHP复制

设置fq

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf

PHP复制

设置bbrplus

echo "net.ipv4.tcp_congestion_control=bbrplus" >> /etc/sysctl.conf

PHP复制

重启

reboot

PHP复制

检查内核版本

uname -r

PHP复制

显示4.14.129-bbrplus则成功

检查bbrplus是否已经启动

lsmod | grep bbrplus

PHP复制

显示有tcp_bbrplus则成功

卸载方法:

安装别的内核bbrplus自动失效,卸载内核自行谷歌即可