进入root
sudo -i
卸载掉良心云轻量内置的各种监控
bash /usr/local/qcloud/YunJing/uninst.sh
bash /usr/local/qcloud/stargate/admin/uninstall.sh
bash /usr/local/qcloud/monitor/barad/admin/uninstall.sh
systemctl stop tat_agent
systemctl disable tat_agent
rm -f /etc/systemd/system/tat_agent.service
# 自行删除Cron中残留的定时任务
crontab -e
腾讯云轻量服务器删除监控,指令如下
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh
AWK
卸载新的TAT自动化助手
systemctl stop tat_agent
systemctl disable tat_agent
rm -f /etc/systemd/system/tat_agent.service
# 谨慎可选 rm -fr /usr/local/qcloud
检查 agent 进程是否还在
ps -A | grep agent