阿里云ECS卸载安骑士(阿里云盾)

作用说明:

用了一段时间阿里云的ECS,发现这个阿里云盾(安骑士)功能真心没什么用,还需要长驻内存。上网找找了方法,直接干掉吧,记录一下分享给您。

系统卸载:

如果你使用的centos系统,直接就可以卸载:

service aegis stop
chkconfig --del aegis

脚本卸载:

有时候系统卸载不方便,则需要使用脚本来干掉它,脚本为阿里云官方提供,安全放心。

卸载脚本

wget http://update.aegis.aliyun.com/download/uninstall.sh
sh uninstall.sh
wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh
sh quartz_uninstall.sh

删除残留

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

屏弊云盾

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

执行htop观测几分钟,干净清爽。

版权声明:
作者:hostf4
链接:https://www.hostf4.com/%e9%98%bf%e9%87%8c%e4%ba%91ecs%e5%8d%b8%e8%bd%bd%e5%ae%89%e9%aa%91%e5%a3%ab%ef%bc%88%e9%98%bf%e9%87%8c%e4%ba%91%e7%9b%be%ef%bc%89/
来源:hostf4主机网
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>