腾讯云、阿里云香港轻量服务器加上BBR+加速跑满带宽 时间:2022年8月23日 分类:教程分享 评论:0 条 阅读:9906 次 服务器 阿里云 香港 加速 BBR 轻量服务器 服务器加速 卸载阿里云安骑士 卸载安骑士 # **前言** 最近买了台阿里的香港轻量服务器,1U1G30M(共享)。虽然已经知道是非直连大陆的,但延迟还可以接受,至于速度开始跑满`4MB/s`带宽的后面大概只有`500KB/s`左右,尤其高峰期很不理想。网上找了找服务器加速教程,跟着走了一遍。 速度直接飞起,高峰期秒开、跑满。电信和联通快,移动稍慢,但是比原来快了很多很多。 # **教程** ## **新增卸载腾讯云 云监控与云镜** 2022年8月23日更新补充 ### **卸载云监控与云镜** ```shell sh /usr/local/qcloud/YunJing/uninst.sh && \ sh /usr/local/qcloud/stargate/admin/uninstall.sh && \ sh /usr/local/qcloud/monitor/barad/admin/uninstall.sh ``` **保险起见删除 `/usr/local/qcloud` 文件夹** ```shell rm -rf /usr/local/qcloud ``` ## **首先卸载阿里云安骑士** ### **卸载安骑士** ``` 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 ``` **如果是宝塔面板可以如图设置** ``` 140.205.201.0/28 140.205.201.16/29 140.205.201.32/28 140.205.225.192/29 140.205.225.200/30 140.205.225.184/29 140.205.225.183/32 140.205.225.206/32 140.205.225.205/32 140.205.225.195/32 140.205.225.204/32 ```  ## **安装 BBR+** 这里安装 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 + 的安装,此时提速明显!  ## **小缺点** 移动有时候可能会炸,不过问题不大,整体直接飞起! 有时候重启会掉,需要运行 `./tcp.sh` 命令,然后选 7 启动 本文由 血莲聆空 创作,采用 知识共享署名4.0 国际许可协议进行许可。本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。最后编辑时间为:2022年8月23日 21:32:52