最近发现连国内腾讯云服务器有点卡,top看了下有云盾的服务吃CPU,这个安全服务不怎么需要,毕竟自给自足,网上查资料弄了个脚本一键处理:

#!/bin/bash
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh
rm -rf /usr/local/sa
rm -rf /usr/local/agenttools
rm -rf /usr/local/qcloud
process=(sap100 secu-tcs-agent sgagent64 barad_agent agent agentPlugInD pvdriver )
for i in ${process[@]}
do
for A in $(ps aux | grep $i | grep -v grep | awk '{print $2}')
do
kill -9 $A
done
done

如果你不像删除目录的话,可以注释掉rm的那三句。

Related Posts: 腾讯云盾卸载脚本 :

avatar