卸载阿里云监控,彻底干掉阿里云盾和阿里云助手
简介
各家的云服务提供商基本上都装有监控,阿里云也不例外,如果你不把阿里云盾这类监控程序干掉,有些软件你死
活都安装不上。阿里云盾是什么,它是阿里云官方云服务器自带的监控软件,也叫AliYunDun安骑士。你使用云服务器时
占用CPU、带宽、硬盘过高会发出预警,并且监控你违规的服务进程,那么我下面就讲怎么卸载阿里云监控。
教程
卸载阿里云盾
卸载Linux系统阿里云盾步骤如下:
卸载阿里云盾的一键脚本
curl -sSL http://update.aegis.aliyun.com/download/uninstall.sh | bash
curl -sSL http://update.aegis.aliyun.com/download/quartz_uninstall.sh | bash
删除阿里云盾残留
使用一键脚本卸载完阿里云盾之后,我们再删除一下残留文件
pkill aliyun-service
rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
rm -rf /usr/local/aegis*
rm -rf /usr/sbin/aliyun-service
rm -rf /usr/sbin/aliyun-service.backup
rm -rf /usr/sbin/aliyun_installer
rm -rf /etc/systemd/system/aliyun.service
rm -rf /lib/systemd/system/aliyun.service
rm uninstall.sh quartz_uninstall.sh
屏蔽阿里云盾IP
使用iptables对阿里云盾的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
卸载阿里云助手守护进程
卸载删除阿里云助手的守护进程
systemctl stop AssistDaemon
systemctl disable AssistDaemon
rm -rf /etc/systemd/system/AssistDaemon.service
rm -rf /usr/local/share/assist-daemon
systemctl daemon-reload
检测进程
使用下方命令来检测是否卸载干净
#检查是否还有aliyun 进程
ps -ef | grep -v grep | grep -i aliyun
#如果检测有进程输出,使用这条来输出查询进程ID
ps -ef | grep -v grep | grep -i aliyun | awk '{print $2}'
卸载阿里云盾windows版
卸载windows系统阿里云盾步骤如下:
复制下方的代码,并且保存为 bat文件,例如“aliyun.bat” ,在windows系统上运行脚本
tasklist /FI "IMAGENAME eq Ali_update.exe"
taskkill /F /IM Ali_update.exe
taskkill /F /IM AliHids.exe
sc stop "Alibaba Security Aegis Detect Service"
sc stop "Alibaba Security Aegis Update Service"
sc delete "Alibaba Security Aegis Detect Service"
sc delete "Alibaba Security Aegis Update Service"
rmdir /s /q "C:\Program Files (x86)\Alibaba\Aegis\aegis_client"
rmdir /s /q "C:\Program Files\Alibaba\Aegis\aegis_client"
ping update.aegis.aliyun.com -n 5>nul
rmdir /s /q "C:\Program Files (x86)\Alibaba\Aegis\aegis_client"
rmdir /s /q "C:\Program Files\Alibaba\Aegis\aegis_client"
rmdir /s /q "C:\Program Files (x86)\Alibaba\Aegis\aegis_update"
rmdir /s /q "C:\Program Files\Alibaba\Aegis\aegis_update"
rmdir /s /q "C:\Program Files (x86)\Alibaba\Aegis\alihids"
rmdir /s /q "C:\Program Files\Alibaba\Aegis\alihids"
或者执行下方的卸载批处理脚本
http://update.aegis.aliyun.com/download/uninstall.bat?spm=a2c6h.13066369.0.0.143d32d0TB6nIu&file=uninstall.bat
版权声明:
作者:ivpsr.com
链接:https://ivpsr.com/3914.html
文章版权归作者所有,未经允许请勿转载。
THE END