腾讯云轻量级卸载监控,自动化命令等

2021/11/28 12:03:13      点击:
# 删除所有 /usr/local 路径的定时任务,或者执行crontab -r直接删除
crontab -e

# 卸载
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh

# 删除启动项
sed -i '/\/usr\/local\/sa/d' /etc/rc.local
sed -i '/\/usr\/local\/qcloud/d' /etc/rc.local

# 禁用 tat_agent 自动化命令
systemctl stop tat_agent
systemctl disable tat_agent

# 删除残留
rm -rf /etc/systemd/system/tat_agent.service
rm -rf /usr/local/qcloud/usr/local/sa