由于使用阿里云服务器搭建梯子有几率被阿里云监控系统监测到,因此要想不被监测到需要将服务器中的阿里云盾关闭。
使用SSH连接服务器
文本采用XShell7连接服务器,系统以Ubuntu20.04为例(不会的看上篇文章)
关闭云盾自保护
不关闭云盾自保护会导致接下去卸载的时候出现下述错误
1
| wait AliYunDun process exit fail, possibly due to self-protection, please uninstall aegis or disable self-protection from the aegis console.
|
接下去我来演示如何关闭云盾自保护
进入后点击“主机资产” -> “查看”:
往下拉,将客户端自保护系统关闭
卸载阿里云盾(安骑士)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| systemctl stop aliyun systemctl disable aliyun
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
rm -rf /usr/local/aegis* rm -rf /usr/sbin/aliyun-service rm -rf /usr/sbin/aliyun-service.backup rm -rf /usr/sbin/aliyun_installer rm -rf /etc/systemd/system/aliyun.service rm -rf /lib/systemd/system/aliyun.service rm uninstall.sh quartz_uninstall.sh
systemctl daemon-reload
|
卸载阿里云助手的守护进程
1 2 3 4 5 6 7 8 9 10
| systemctl stop AssistDaemon systemctl disable AssistDaemon
rm -rf /etc/systemd/system/AssistDaemon.service rm -rf /usr/local/share/assist-daemon
systemctl daemon-reload
|
检查是否卸载干净
1 2 3 4 5
| ps -ef | grep -v grep | grep -i aliyun
ps -ef | grep -v grep | grep -i aliyun | awk '{print $2}'
|
到此,恭喜你卸载完毕 (●’◡’●)