全网影视免费看

如何强制卸载阿里云盾(安骑士)监控及屏蔽云盾 IP 检测 & 附带教程

阿里云盾(AliYunDun),又叫阿里云安骑士,是阿里云官方镜像自带的云监控软件,能监控阿里云服务器状态和运行进程,并将部分数据上报给阿里云后台。阿里云盾不仅对cpu、带宽、硬盘占用过高发出预警,也会检测科学上网进程,然后发送违规警告给用户。如果阿里云服务器用来科学上网,建议卸载云盾。

周所众知,像现在的国内大厂的云服务器都是自带监测系统的,站点有没有违规文件都可以帮你监测出来封你ip,今天分享一个如何强制卸载阿里云服务器的云盾(安骑士)监控及屏蔽云盾 IP 检测的教程

第一步,卸载阿里云盾(安骑士)

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*

卸载后可以查看自己云服务器进程,已经没有了 AliYunDun、aliyun-service、AliYunDunUpdate 三项

第三步,屏蔽云盾 IP

执行下面命令通过 “iptables” 防火墙来屏蔽云盾 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

卸载腾讯云监控方法

wget http://update.aegis.aliyun.com/download/uninstall.sh
chmod +x uninstall.sh
./uninstall.sh
rm -rf uninstall.sh
wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh
chmod +x quartz_uninstall.sh
./quartz_uninstall.sh
rm -rf quartz_uninstall.sh
pkill aliyun-service
rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
rm -rf /usr/local/aegis*

卸载完成后

ps aux | grep aeg | grep -v grep

应该输出为空

该脚本可多次运行,不会有什么后遗症。

本站福利,全网影视在线免费看 | 点击出发

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

提示:非实物交易,购买后不退款,请考虑好再购买 | 点此查看购买指南
售前咨询和售后服务,请点此联系作者咨询

给TA赞赏
共{{data.count}}人
人已赞赏
广告占位
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索