記得在之前小編推薦過使用FxxckAliyun一鍵腳本來卸載阿里云安騎士、云盾、云監控等組件,但是作者已經很久沒有更新腳本。使用阿里云云服務器就算沒有啟用勾選云盾服務,有時候也會發現阿里云服務進程,真的很流氓,有時候阿里云的安全監控組件會造成服務器占用非常高,嚴重影響網站訪問。今天分享個在CentOS 系統下完整干凈得卸載掉阿里云云盾安騎士和阿里云助手等安全監控組件的方法。

卸載阿里云助手
阿里云助手路徑是:/usr/local/share/aliyun-assist,執行以下命令行即可卸載:
systemctl stop aliyun systemctl disable aliyun rm -rf /etc/systemd/system/aliyun.service rm -rf /usr/sbin/aliyun_installer rm -rf /usr/sbin/aliyun-service rm -rf /usr/local/share/aliyun-assist systemctl daemon-reload
然后通過以下命令行來查看是否還有 aliyun-service 進程:
ps -ef | grep -v grep | grep -i aliyun-service
如果還有輸出內容的話,可以通過以下命令行查看進程 ID:
ps -ef | grep -v grep | grep -i aliyun-service | awk '{print $2}'
然后通過以下命令行來結束此阿里云助手進程:
ps -ef | grep -v grep | grep -i aliyun-service | awk '{print $2}' | xargs kill -9
卸載阿里云助手的守護進程
阿里云助手守護進程的路徑是:/usr/local/share/assist-daemon,執行以下命令行即可卸載:
systemctl stop AssistDaemon systemctl disable AssistDaemon rm -rf /etc/systemd/system/AssistDaemon.service rm -rf /usr/local/share/assist-daemon systemctl daemon-reload
卸載阿里云盾 AliYunDun
使用 chkconfig –list 命令可以在開機啟動項里面看到 aegis,也就是阿里云盾 AliYunDun。
# chkconfig --list aegis 0:off 1:off 2:on 3:on 4:on 5:on 6:off agentwatch 0:off 1:off 2:on 3:on 4:on 5:on 6:off cloudmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
通過輸入以下命令行就可以使阿里云盾開機不啟動:
service aegis stop # 停止服務 chkconfig --del aegis # 刪除服務
然后執行以下命令行來刪除云盾殘留:
rm -rf /usr/local/aegis
然后通過以下命令行來查看是否還有 aliyundun 進程:
ps -ef | grep -v grep | grep -i aliyundun
如果有輸出內容的話,可以通過以下命令行來結束阿里云云盾進程:
ps -ef | grep -v grep | grep -i aliyundun | awk '{print $2}' | xargs kill -9





















![搬瓦工:新上線的加拿大溫哥華CN2 GIA[CABC_6]機房怎么樣?性能、網絡、流媒體及游戲區域限制等數據分享-國外主機測評](http://www.lrracing.com/wp-content/uploads/2023/02/20230226182312.png)