IT技术博客大学习 共学习 共进步

清理阿里云自带的垃圾服务

Felix021 2026-06-03 09:03:23 累计浏览 7 次
本机暂存
在阿里云采购的小内存(512M)主机会 OOM,卸载完这些垃圾服务以后就正常了。

# 云盾(AliYunDun、AliYunDunMonitor)

https://help.aliyun.com/zh/security-center/user-guide/uninstall-the-security-center-agent#section-wfc-zqf-pgb

在主机资产页面该服务器基本信息页签的防御状态区域关闭「客户端自保护」和「恶意主机行为防御」
然后在 云安全中心控制台 -> 系统配置 > 功能设置 -> 客户端 -> 卸载,找到对应的主机完成卸载。


# 云助手(aliyun-assist)

https://help.aliyun.com/zh/ecs/user-guide/start-stop-or-uninstall-the-cloud-assistant-agent

/usr/local/share/assist-daemon/assist_daemon --stop
/usr/local/share/assist-daemon/assist_daemon --delete

ps x | grep aliyun-service
kill $PID

rm -rf /usr/local/share/assist-daemon
rm -rf /usr/local/share/aliyun-assist



# 云监控(cloudmonitor)

https://help.aliyun.com/zh/cms/cloudmonitor-1-0/user-guide/install-and-uninstall-the-cloudmonitor-agent-for-cpp#section-hdw-doi-fv4

bash /usr/local/cloudmonitor/cloudmonitorCtl.sh stop
bash /usr/local/cloudmonitor/cloudmonitorCtl.sh uninstall
rm -rf /usr/local/cloudmonitor



06-30 update

aliyun 的默认 ubuntu 发行版还自动启用了一些非常占内存的服务,可能会导致小内存实例 OOM,需要禁用:

systemctl stop tuned multipathd.service multipathd.socket fwupd fwupd-refresh fwupd-refresh.timer apt-daily.timer apt-daily-upgrade.timer
systemctl disable tuned multipathd.service multipathd.socket fwupd fwupd-refresh fwupd-refresh.timer apt-daily.timer apt-daily-upgrade.timer

建议继续学习

  1. 2015年版阿里云ECS服务器使用总结(与aws比较) (累计阅读 3,381)
  2. mysql,redis数据备份方案 (累计阅读 2,447)