Uninstall Alibaba Cloud pre-installed software

888u

Last update at :2024-05-21,Edit by888u

We bought Alibaba Cloud's vps and used Alibaba Cloud's operating system. They pre-installed a lot of software: Server Guard, Cloud Shield, Cloud Monitoring, etc. At this time, we need to manually delete it ourselves, although the official uninstallation service is also available. Tutorial. But not very thorough.

Uninstall Cloudmonitor

Cloud Monitor has two versions: Java version and Go language version. You can determine which one is installed on your server based on the file name in its installation directory /usr/local/cloudmonitor/.

The following describes how to uninstall the two versions.

  • Uninstall Cloud Monitor Java Edition
# stop /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh stop # uninstall /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && \ rm -rf /usr/local/cloudmonitor

Official document page link: https://help.aliyun.com /knowledge_detail/38859.html

  • Uninstall Cloud Monitor Go Language Edition
# Remove from system services /usr/local/cloudmonitor/CmsGoAgent.linux-${ARCH} uninstall # stop /usr/local/cloudmonitor/CmsGoAgent.linux-${ARCH} stop # uninstall /usr/local/cloudmonitor/CmsGoAgent.linux-${ARCH} stop && \ /usr/local/cloudmonitor/CmsGoAgent.linux-${ARCH} uninstall && \ rm -rf /usr/local/cloudmonitor

The ${ARCH} needs to be changed to the corresponding architecture of your system (amd64 or 386), or you can directly check the file name of the corresponding file in the /usr/local/cloudmonitor/ directory.

Official document page link: https://help.aliyun.com /document_detail/97929.html

  • Uninstall Cloud Shield (Server Server)

The official documentation page only introduces how to control You need to submit a work order to obtain the manual uninstallation steps, which is not very convenient. Here we introduce a method of manual uninstallation using a script (actually the two official scripts are also practical), just execute the following command.< /p> wget http://update.aegis.aliyun.com/download/uninstall.sh && chmod +x uninstall.sh &&./uninstall.sh wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh && chmod +x quartz_uninstall.sh && ./quartz_uninstall.sh

After running the above script, there may still be some files/folders left, so we delete them manually (if it prompts that the file does not exist, ignore it)

sudo rm -r /usr/local/aegis sudo rm /usr/sbin/aliyun-service sudo rm /lib/systemd/system/aliyun.service

Okay, after the above processing, it is basically clean. If you have any better method, please contact me. Thanks for reading this article, thank you.

Recommended site search: rent virtual host domain name resolution server, free domain name space, Ningbo server, domain name purchase, domain name registration platform, free virtual space, mainland China proxy server IP, cloud server rental, purchase space,

Uninstall Alibaba Cloud pre-installed software

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码