腾讯云轻量服务器OpenCloudOS自带监控卸载

腾讯云轻量服务器配置低,安装了他家的OpenCloudOS,自带了服务器资源的监控,本以为这样自己省事不用自己整个Zabbix监控了,没想到老消耗资源了,搞得服务器动不动就宕机连不上,原来触发OOM了,果断下决心卸载他家自带监控,一顿骚操作猛如虎,如下:

先运行自带的卸载脚本干掉

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

发现干的还不干净彻底,有个 tat_agent 还在运行,再来个
Stop & Disable tat_agent

systemctl stop tat_agent
systemctl disable tat_agent

静止脚本自启动

vi /etc/rc.d/rc.local

注释掉:

#/usr/local/qcloud/irq/net_smp_affinity.sh >/tmp/net_affinity.log 2>&1
#/usr/local/qcloud/cpuidle/cpuidle_support.sh &> /tmp/cpuidle_support.log
#/usr/local/qcloud/rps/set_rps.sh >/tmp/setRps.log 2>&1
#/usr/local/qcloud/xps/set_xps.sh &> /tmp/set_xps.log &
#/usr/local/qcloud/irq/virtio_blk_smp_affinity.sh > /tmp/virtio_blk_affinity.log 2>&1
#/usr/local/qcloud/gpu/nv_gpu_conf.sh >/tmp/nv_gpu_conf.log 2>&1
#/usr/local/qcloud/scripts/disable_rt_runtime_share.sh >/tmp/disable_rt_runtime_share.log 2>&1

也有哥们直接 物理删除

rm -rf /usr/local/qcloud
rm -f /etc/systemd/system/tat_agent.service
rm -rf /usr/local/sa
rm -rf /usr/local/agenttools
rm -rf /tmp/tat_agent

参考:

  1. https://www.tencentcloud.com/zh/document/product/248/39810
  2. https://www.sohu.com/a/638194132_242207