正文
centos系统阿里云服务器卸载关闭删除安骑士阿里云盾AliYunDun
centos系统阿里云服务器卸载关闭删除安骑士阿里云盾AliYunDun
自用教程,排版可能乱点,有需要的凑活看下。
方式一:关闭删除AliYunDun服务
使用 chkconfig –list 查看开机启动里面这个软件的服务名是什么,然后替换掉 xxx 然后执行就可以了。如果想开机不启动的话,chkconfig –del xxxx 这个 xxxx 就是你找出来的 aliyundun 的后台服务。
service aegis stop #停止服务 chkconfig --del aegis # 删除服务
方式二:卸载云盾监控屏蔽IP
卸载阿里云盾监控
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*
屏蔽云盾 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
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 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 iptables -I INPUT -s 106.11.224.0/26 -j DROP iptables -I INPUT -s 106.11.224.64/26 -j DROP iptables -I INPUT -s 106.11.224.128/26 -j DROP iptables -I INPUT -s 106.11.224.192/26 -j DROP iptables -I INPUT -s 106.11.222.64/26 -j DROP iptables -I INPUT -s 106.11.222.128/26 -j DROP iptables -I INPUT -s 106.11.222.192/26 -j DROP
以上两部分云盾IP来自于网络,自行进行鉴别。
下面是备份的另一个教程
默认使用Root账户登录,所以第一步视情况而定 sudo su root 1 停止aegis服务 service aegis stop 1 删除aegis服务 chkconfig --del aegis 1 下载卸载文件 wget http://update.aegis.aliyun.com/download/uninstall.sh 1 对卸载程序授权并运行 chmod +x uninstall.sh ./uninstall.sh 1 2 下载授权卸载quartz wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh chmod +x _uninstall.sh ./quartz_uninstall.sh 1 2 3 杀死aliyun-service pkill aliyun-service 1 清除相关文件 rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service rm -rf /usr/local/aegis* 1 2 至此卸载任务大功告成,接下来,屏蔽屏蔽云盾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 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 iptables -I INPUT -s 106.11.224.0/26 -j DROP iptables -I INPUT -s 106.11.224.64/26 -j DROP iptables -I INPUT -s 106.11.224.128/26 -j DROP iptables -I INPUT -s 106.11.224.192/26 -j DROP iptables -I INPUT -s 106.11.222.64/26 -j DROP iptables -I INPUT -s 106.11.222.128/26 -j DROP iptables -I INPUT -s 106.11.222.192/26 -j DROP