|
|
发表于 2021-10-27 11:03:23
|
显示全部楼层
[root@VM-0-13-centos ~]# sudo -i
[root@VM-0-13-centos ~]# systemctl stop tat_agent
Failed to stop tat_agent.service: Unit tat_agent.service not loaded.
[root@VM-0-13-centos ~]# systemctl disable tat_agent
Failed to execute operation: No such file or directory
[root@VM-0-13-centos ~]# /usr/local/qcloud/stargate/admin/uninstall.sh
-bash: /usr/local/qcloud/stargate/admin/uninstall.sh: 没有那个文件或目录
[root@VM-0-13-centos ~]# /usr/local/qcloud/YunJing/uninst.sh
-bash: /usr/local/qcloud/YunJing/uninst.sh: 没有那个文件或目录
[root@VM-0-13-centos ~]# /usr/local/qcloud/monitor/barad/admin/uninstall.sh
-bash: /usr/local/qcloud/monitor/barad/admin/uninstall.sh: 没有那个文件或目录
[root@VM-0-13-centos ~]# rm -f /etc/systemd/system/tat_agent.service
[root@VM-0-13-centos ~]# rm -rf /usr/local/qcloud
[root@VM-0-13-centos ~]# rm -rf /usr/local/sa
[root@VM-0-13-centos ~]# rm -rf /usr/local/agenttools
[root@VM-0-13-centos ~]# rm -rf /usr/local/qcloud
[root@VM-0-13-centos ~]# process=(sap100 secu-tcs-agent sgagent64 barad_agent agent agentPlugInD pvdriver )
[root@VM-0-13-centos ~]# for i in ${process[@]}
> do
> for A in $(ps aux | grep $i | grep -v grep | awk '{print $2}')
> do
> kill -9 $A
> done
> done
|
|