轻量云服务器安装BBR及加速

最新动态 无标签
0 68
TLR
TLR 自由达人 2020-04-03 16:37:13
用户等级:-0级

阿里云香港轻量云服务器很便宜,带宽是30M速度也不错名,但是一到晚上等高峰期就比较卡,后来我用BBR加速试了下,的确有效果。所以介绍下安装教程。

1、卸载阿里云盾(安骑士)

  1. wget http://update.aegis.aliyun.com/download/uninstall.sh
  2. chmod +x uninstall.sh
  3. ./uninstall.sh
  4. wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh
  5. chmod +x quartz_uninstall.sh
  6. ./quartz_uninstall.sh
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

2、 删除残留

  1. pkill aliyun-service
  2. rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
  3. rm -rf /usr/local/aegis*
pkill aliyun-service
rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
rm -rf /usr/local/aegis*

3、 屏蔽云盾IP

  1. iptables -I INPUT -s 140.205.201.0/28 -j DROP
  2. iptables -I INPUT -s 140.205.201.16/29 -j DROP
  3. iptables -I INPUT -s 140.205.201.32/28 -j DROP
  4. iptables -I INPUT -s 140.205.225.192/29 -j DROP
  5. iptables -I INPUT -s 140.205.225.200/30 -j DROP
  6. iptables -I INPUT -s 140.205.225.184/29 -j DROP
  7. iptables -I INPUT -s 140.205.225.183/32 -j DROP
  8. iptables -I INPUT -s 140.205.225.206/32 -j DROP
  9. iptables -I INPUT -s 140.205.225.205/32 -j DROP
  10. iptables -I INPUT -s 140.205.225.195/32 -j DROP
  11. iptables -I INPUT -s 140.205.225.204/32 -j DROP
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

4、 安装BBR plus版本

  1. wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh"
  2. chmod +x tcp.sh
  3. ./tcp.sh
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh"
chmod +x tcp.sh
./tcp.sh

选2,安装BBRplus,安装成功后会提示重启,重启后再次运行./tcp.sh命令,然后选7,使用BBRplus加速,大功告成!

楼主签名:同路人夜岚 QQ1691199323
回帖
回复列表