本意是保护服务器不受侵害,但低配服务器不配用这些,官方卸载方案是这样:
wget http://update2.aegis.aliyun.com/download/uninstall.sh && chmod +x uninstall.sh && ./uninstall.sh
rm -rf /usr/local/aegis
rm -rf uninstall.sh
网上看到还要加一条:
wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh && chmod +x quartz_uninstall.sh && ./quartz_uninstall.sh
查看卸载情况:
ps -aux | grep -E 'aliyun|AliYunDun'
如果卸载失败,kill每个进程后再卸载一次
如果aegis不好卸载,那直接linux下输入命令:
/etc/init.d/aegis uninstall
直接卸载就行
还有不要忘记这个:
systemctl stop aliyun.service
systemctl disable aliyun.service
/usr/local/share/assist-daemon/assist_daemon --stop
/usr/local/share/assist-daemon/assist_daemon --delete
rm -rf /usr/local/share/assist-daemon
rm -rf /usr/local/share/aliyun-assist/
rm -rf /usr/sbin/aliyun-service
rm -rf /usr/sbin/aliyun_installer
rm -rf /etc/systemd/system/aliyun.service
systemctl daemon-reload
最后还剩下个进程“aliyun|AliYunDun”死活卸载不掉,进程kill后还是会出来,之后再研究了,资源省出不少,先用着。
对了,别忘记屏蔽阿里云盾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
至于卸载不干净,有个第三方卸载的方法,安全与否自己判断:
apt-get update
apt-get install iptables
wget -N --no-check-certificate https://raw.githubusercontent.com/babywbx/Uninstall-aliyun-service/master/UAS.sh && chmod 777 UAS.sh && ./UAS.sh
wget https://cdn.jsdelivr.net/gh/wangkai6688/fuckaliyun/fuckaliyun.sh -O ./fuckaliyun.sh
chmod +x fuckaliyun.sh
./fuckaliyun.sh
没有回复内容