Linux一键安装常见/最新内核脚本 BBR/锐速/BBRPLUS/BBR2

Google 开源了其 TCP BBR 拥塞控制算法,并提交到了 Linux 内核,从 4.9 开始,Linux 内核已经用上了该算法。根据以往的传统,Google 总是先在自家的生产环境上线运用后,才会将代码开源,此次也不例外。
根据实地测试,在部署了最新版内核并开启了 TCP BBR 的机器上,网速甚至可以提升好几个数量级。

预先准备

centos:yum install ca-certificates wget -y && update-ca-trust force-enable
debian/ubuntu:apt-get install ca-certificates wget -y && update-ca-certificates

不卸载内核版本

wget -O tcpx.sh “https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh” && chmod +x tcpx.sh && ./tcpx.sh

卸载内核版本

wget -O tcp.sh “https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcp.sh” && chmod +x tcp.sh && ./tcp.sh

提示:目前脚本对CN地址作了特殊处理,如果非CN地址被MAXMIND识别为CN,那可能造成处理的链接返回503无法通过链接检测

锐速/bbr/bbrplus 对应的版本:

跟随github地址为 https://github.com/ylx2016/kernel/releases

bbrplus新版源 https://github.com/UJX6N

不卸载版本22优化项默认开启tcp fast open,卸载默认关闭。

BBR

centos7 – 跟随github

debian/ubuntu – 跟随github 支持ARM64

BBRPLUS

centos7 – 4.14.129

debian/ubuntu – 4.14.129

BBRPLUS新版号 仅限Cloud VMs 改为UJX6N的源

centos7/8 – 跟随github

debian/ubuntu – 跟随github 支持ARM64

XANMOD – 当前为最新LTS内核

centos7 – 跟随github

centos8 – 跟随github

debian/ubuntu – 跟随官方

BBR2合并到XANMOD

CLOUD 由新版BBRPLUS替代

未经允许不得转载:我爱VPS » Linux一键安装常见/最新内核脚本 BBR/锐速/BBRPLUS/BBR2

相关文章