删除所有阿里云监控进程,屏蔽云盾功能

  心得体会, 设置文档

近日购入阿里云轻量应用服务器,价格还算实惠,但自带监控进程,吃掉200多MB内存实在不能忍,按照官网的文档整理了一下,关闭如下进程:

卸载阿里云盾监控:

wget http://update.aegis.aliyun.com/download/uninstall.sh
chmod +x uninstall.sh
sudo ./uninstall.sh
wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh
chmod +x quartz_uninstall.sh
sudo ./quartz_uninstall.sh

删除残留:

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

屏蔽云盾 IP,用包过滤屏蔽如下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

卸载云监控Java版本插件:

sudo /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh stop

sudo /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove

sudo rm -rf /usr/local/cloudmonitor

删除后资源占用(已运行Tengine+MariaDB+PHP7.2数个网站):

参考资料:

卸载阿里云盾(安骑士)监控&屏蔽云盾IP

卸载Agent

云监控Java版本插件安装

LEAVE A COMMENT

14 − = 6