使用阿里云ECS的时候不难发现系统里面会有阿里云的有关进程,出于某些原因,我们不希望系统中有这种东西,所以我们这里记录一下卸载或者停用的方法。
本文适用于Ubuntu 16.04 LTS,其他系统用户可以自己看着办反正systemd很多发行版都在使用。
卸载云盾
curl -sSL http://update.aegis.aliyun.com/download/quartz_uninstall.sh | sudo bash sudo killall -9 aegis_* sudo killall -9 aliyun_* sudo systemctl disable agentwatch.service sudo systemctl disable aliyun.service sudo rm -rf /usr/local/aegis sudo rm /usr/sbin/aliyun-service sudo rm /lib/systemd/system/aliyun.service
卸载阿里云其他服务软件
sudo systemctl stop accounts-daemon.service sudo systemctl disable accounts-daemon.service sudo systemctl stop aliyun-util.service sudo systemctl disable aliyun-util.service sudo systemctl stop cloud-config.service sudo systemctl disable cloud-config.service sudo systemctl stop cloud-final.service sudo systemctl disable cloud-final.service sudo systemctl stop cloud-init-local.service sudo systemctl disable cloud-init-local.service sudo systemctl stop cloud-init-upgrade.service sudo systemctl disable cloud-init-upgrade.service sudo systemctl stop cloud-init.service sudo systemctl disable cloud-init.service #如果需要删除可以执行 sudo rm /etc/systemd/system/aliyun-util.service sudo rm -rf /etc/aliyun-util sudo rm /lib/systemd/system/accounts-daemon.service sudo rm /lib/systemd/system/cloud-final.service sudo rm /lib/systemd/system/cloud-config.target sudo rm /lib/systemd/system/cloud-init.service sudo rm /lib/systemd/system/cloud-config.service sudo rm /lib/systemd/system/cloud-init-upgrade.service sudo rm /lib/systemd/system/cloud-init-local.service