Linux卸载腾讯云、阿里云后台监控服务
饼干前言
相信腾讯云,阿里云大家都很熟悉了,那么腾讯云、阿里云后台监控是怎么回事呢?对云腾讯云、阿里云等大厂而言自带的系统一般都带有后台监控等,虽然我们这些遵纪守法的好公民来讲其实也没啥的,但是总归是不太舒服的。所以本文将介绍如何卸载其监控等。(ps:上了腾讯云轻量香港的车,来水一水。)
懒人专用一键脚本
1 2 3 4 5 6 7 8
| wget https://yun.tyiblog.top/linux/all/jk_uninstall.sh chmod +x jk_uninstall.sh #卸载阿里云 ./jk_uninstall.sh ai #卸载腾讯云 ./jk_uninstall.sh tx Shell复制 **腾讯云监控卸载**
|
SSH运行以下代码:
1 2 3
| /usr/local/qcloud/stargate/admin/uninstall.sh /usr/local/qcloud/YunJing/uninst.sh /usr/local/qcloud/monitor/barad/admin/uninstall.sh
|
以下代码不建议运行:
1 2 3
| rm -rf /usr/local/qcloud/ rm -rf /usr/local/sa/ rm -rf /usr/local/agenttools
|
SSH运行以下代码无输出则卸载成功。(最好重启后运行查看)
阿里云监控卸载
卸载脚本:
1 2 3 4 5 6
| wget http://update.aegis.aliyun.com/download/uninstall.sh chmod +x uninstall.sh ./uninstall.sh wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh chmod +x quartz_uninstall.sh ./quartz_uninstall.sh
|
卸载残留:
1 2 3
| pkill aliyun-service rm -rf /etc/init.d/agentwatch /usr/sbin/aliyun-service rm -rf /usr/local/aegis*
|
屏蔽云盾:
1 2 3 4 5 6 7 8 9 10 11
| 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中释放屏蔽的IP段即可,安骑士的启用使用以下代码:
1 2 3
| wget http://update.aegis.aliyun.com/download/install.sh chmod +x install.sh sh install.sh
|