阿里云方法
卸载AliYunDun
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
复制
删除AliYunDun残留
pkill aliyun-service
rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
rm -rf /usr/local/aegis*
删除AliYunDun残留
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
腾讯云方法
卸载命令
sh /usr/local/qcloud/stargate/admin/uninstall.sh
sh /usr/local/qcloud/YunJing/uninst.sh
sh /usr/local/qcloud/monitor/barad/admin/uninstall.sh
停用服务
systemctl stop tat_agent
systemctl disable tat_agent
rm -f /etc/systemd/system/tat_agent.service
卸载完以后可以通过如下命令来查看是否卸载干净
ps -A | grep agent
如无任何输出,则已卸载干净,如果有输出,请检查是否你自己的程序
删除定时任务
# 删除Cron中残留的定时任务$ crontab -e
服务器会定时执行 /usr/local/qcloud/
目录下程序,我们可以一劳永逸,直接把 crontab
清空,/usr/local/qcloud/
目录删掉即可。
但是如果你的Cron中含有你自己的定时任务,那么请勿执行crontab -r命令
crontab -r
rm -rf /usr/local/qcloud/
参考:https://cloud.tencent.com/developer/article/2162106?from=15425&areaSource=102001.1&traceId=0LGNLEgA1sEqoWBslAyP-
http://anyun.org/a/xitongwendang/2022/0516/11528.html