Press "Enter" to skip to content

如何优雅地完整的一键卸载腾讯云监控(sgagent && barad_agent)

使用

我主要使用的是Centos的服务器,测试环境是Centos 7.4(其他Linux系统也应该大同小异)

直接在腾讯云服务器上运行以下代码即可

/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh

也可以使用打包好的shell

wget -qO- https://raw.githubusercontent.com/littleplus/TencentAgentRemove/master/remove.sh | bash

检查

此脚本卸载完腾讯云的监控,但是腾讯云文件夹并不是只有监控,为了保险起见,脚本不会rm -fr /usr/local/qcloud

卸载完以后可以通过:ps -A | grep agent

来查看是否卸载干净,如无任何输出,则已卸载干净,如果有输出,请检查是否你自己的程序(清干净后如下图)


注:本文转自https://www.xjh.me/3687.html?replytocom=5342

One Comment

发表回复

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