前言
以前博主小轩的博客放在阿里云的ECS上,已经用了一个来月,发现这个阿里云服务器自带的安骑士功能真心没什么用,还需要占用许多内存,如果你还是用来做某些不可描述的事情,那就更要卸载掉安骑士了(据说安骑士会监控?,上网找了个方法,直接卸载,在这里把方法分享下给你!
CentOS系统
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观测几分钟,干净清爽!!!
自此就卸载完成。