刚拿到阿里云的轻量服务器,发现有多监控服务。
root 1273 0.0 0.4 42400 3796 ? S<sl 20:10 0:02 /usr/local/aegis/aegis_update/AliYunDunUpdate
root 1323 0.4 1.0 87848 9260 ? S<sl 20:11 0:10 /usr/local/aegis/aegis_client/aegis_11_91/AliYunDun
root 1334 0.7 1.7 125904 15980 ? S<sl 20:11 0:19 /usr/local/aegis/aegis_client/aegis_11_91/AliYunDunMonitor
root 736 0.0 1.2 689600 11124 ? Ssl 20:10 0:02 /usr/local/share/aliyun-assist/2.2.3.601/aliyun-service
清理服务
在移除aegis服务时发现无权限。
systemctl stop aliyun
systemctl stop aegis
systemctl disable aliyun
rm -f /etc/init.d/aegis
root@lolicp:~# systemctl disable aegis
Failed to disable unit: Access denied
查看属性时发现存在e
属性,删除即可。
root@lolicp:~# lsattr /etc/systemd/system/aegis.service
--------------e------- /etc/systemd/system/aegis.service
root@lolicp:~# getfattr -d /etc/systemd/system/aegis.service
root@lolicp:~#
root@lolicp:~# chattr -e /etc/systemd/system/aegis.service
root@lolicp:~# lsattr /etc/systemd/system/aegis.service
---------------------- /etc/systemd/system/aegis.service
重启服务器,删除对应文件即可
rm -rf /usr/local/aegis
rm -rf /etc/systemd/system/aegis.service