阿里云服务器卸载云监控命令合集

Author:

云服务器系统瘦身:

第一步需要阿里云后台进入云安全中心控制台,卸载服务器的客户端,如下图

然后需要对阿里云系统进行一次大扫除,屏蔽阿里云盾IP、卸载安骑士监控,提高服务器的访问速度。

  • 卸载阿里安骑士监控,执行以下命令:
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

Bash

  • 删除卸载后的残留信息,执行以下命令:
pkill aliyun-service
rm -rf /etc/init.d/agentwatch /usr/sbin/aliyun-service
rm -rf /usr/local/aegis*

Bash

  • 屏蔽安骑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

Bash

注:每次升级系统,都需要重新卸载一次

完成



微信扫描下方的二维码阅读本文

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注