卸载阿里/腾讯云Linux主机监控进程,屏蔽云盾功能

卸载阿里云盾监控:

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

阿里云监控插件卸载 Go语言版本

烦人的插件,占内存。

/usr/local/cloudmonitor/CmsGoAgent.linux-amd64 stop
/usr/local/cloudmonitor/CmsGoAgent.linux-amd64 uninstall
rm -rf /usr/local/cloudmonitor

卸载腾讯云盾监控:

 

sudo /usr/local/qcloud/stargate/admin/uninstall.sh
sudo /usr/local/qcloud/YunJing/uninst.sh
sudo /usr/local/qcloud/monitor/barad/admin/uninstall.sh

删除残留:

sudo rm -rf /usr/local/qcloud (可选)

参考资料:

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

卸载Agent

云监控Java版本插件安装

如何优雅地完整的一键卸载腾讯云监控(sgagent && barad_agent)

LEAVE A COMMENT

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据