一键卸载腾讯云监控
(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打包好的shell,我并沒有實際測試
檢查
此腳本卸載完騰訊云的監控,但是騰訊云文件夾并不是只有監控,為了保險起見,腳本不會rm -fr /usr/local/qcloud(沒事瞎雞扒rm -fr簡直作大死)
卸載完以后可以通過:ps -A | grep agent
來查看是否卸載干凈,如無任何輸出,則已卸載干凈,如果有輸出,請檢查是否你自己的程序
總結
- 上一篇: c语言统计输入文本不同字母单词数,统计文
- 下一篇: java md5签名算法_MD5请求签名