卸载云盾

卸载云盾监控

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

删除文件残留

pkill aliyun-service 
rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service 
rm -rf /usr/local/aegis*

屏蔽云盾IP

iptables -I INPUT -s 140.205.201.0/28 -j DROP
iptables -I INPUT -s 140.205.201.16/29 -j DROP
iptables -I INPUT -s 140.205.201.32/28 -j DROP
iptables -I INPUT -s 140.205.225.192/29 -j DROP
iptables -I INPUT -s 140.205.225.200/30 -j DROP
iptables -I INPUT -s 140.205.225.184/29 -j DROP
iptables -I INPUT -s 140.205.225.183/32 -j DROP
iptables -I INPUT -s 140.205.225.206/32 -j DROP
iptables -I INPUT -s 140.205.225.205/32 -j DROP
iptables -I INPUT -s 140.205.225.195/32 -j DROP
iptables -I INPUT -s 140.205.225.204/32 -j DROP

检查是否卸载干净

ps -aux | grep -E 'aliyun|AliYunDun'

实测经过上面的步骤后还是会有残留无法清理干净,所以DD是最好的选择

在线重装

安装必要的组件

For RedHat/CentOS

yum install -y xz openssl gawk file wget

For Debian/Ubuntu

apt-get install -y xz-utils openssl gawk file wget

下载脚本

wget --no-check-certificate -qO ~/Network-Reinstall-System-Modify.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/Network-Reinstall-System-Modify.sh' && chmod a+x ~/Network-Reinstall-System-Modify.sh

安装系统

bash ~/Network-Reinstall-System-Modify.sh -UI_Options

因硬件配置和网络环境不同,安装全程需要15-60分钟,请耐心等待

安装完毕的默认密码是cxthhhhh.com

更多信息:点击查看