买了阿里云香港轻量级服务器, 峰值网速带宽30Mbps, 但是本地下载服务器文件只有几十K, 于是搜索资料, 发现上面的解决办法, 速度提升很明显, 非常推荐.
安装BBR前的下载速度:
安装后的下载速度:
安装步骤: 先卸载阿里云安骑士和一些残留文件, 然后安装BBR加速模块. 具体步骤如下
步骤一
卸载安骑士 首先卸载阿里云安骑士
wget http://update.aegis.aliyun.com/download/uninstall.sh
chmod +x uninstall.sh
./uninstall.sh
wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh
chmod +x quartz_uninstall.sh
./quartz_uninstall.sh
删除残留文件
pkill aliyun-service
rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
rm -rf /usr/local/aegis*
屏蔽安骑士 IP
iptables -I INPUT -s 140.205.201.0/28 -j DROP
iptables -I INPUT -s 140.205.201.16/29 -j DROP
iptables -I INPUT -s 140.205.201.32/28 -j DROP
iptables -I INPUT -s 140.205.225.192/29 -j DROP
iptables -I INPUT -s 140.205.225.200/30 -j DROP
iptables -I INPUT -s 140.205.225.184/29 -j DROP
iptables -I INPUT -s 140.205.225.183/32 -j DROP
iptables -I INPUT -s 140.205.225.206/32 -j DROP
iptables -I INPUT -s 140.205.225.205/32 -j DROP
iptables -I INPUT -s 140.205.225.195/32 -j DROP
iptables -I INPUT -s 140.205.225.204/32 -j DROP
步骤二
这里安装 BBR plus 版本,Plus 版本经过修改后会具有侵略性,能更好的抢占带宽,提高速度。
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh"
chmod +x tcp.sh
./tcp.sh
选 2,安装重启后再次运行./tcp.sh 命令,然后选 7,完成 BBR + 的安装,此时提速明显!