VPS服务器一些加速脚本

Linux 发行版在内核版本 4.9 及以上版本中

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sudo sysctl -p

查看BBR是否安装启动:

sysctl net.ipv4.tcp_congestion_control
lsmod | grep bbr

如果结果显示有tcp_bbr模块,则表示BBR已加载到内核中。

  • BBR plus内核4.14.129版(修复CVE-2019-11477内核漏洞)

#支持系统:CentOS 6+、Debian 8+、Debian 10、buntu 14+、Ubuntu 16+

wget  --no-check-certificate -q -O tcp.sh "https://github.com/cx9208/Linux-NetSpeed/raw/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

 

BBR plus内核升级版
不卸载内核版本

wget -N --no-check-certificate "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh

wget -N "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh

安装完内核之后,reboot 重启 ./tcp.sh 进入管理脚本,开启加速

发表评论