据我所知目前轻量级服务器阿里默认安装了云监控和安骑士
本人最不喜欢别人在我服务器里安装监控,因此干掉它。然后记得开启防火墙做好相关的安全措施。
1、卸载阿里云盾(安骑士)
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
2、删除残留
pkill aliyun-service rm -fr /etc/init.d/agentwatch rm -fr /usr/sbin/aliyun-service rm -rf /usr/local/aegis* rm -fr /lib/systemd/system/aliyun.service
删除云监控
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && \rm -rf /usr/local/cloudmonitor
防火墙规则
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
firewall自行变通。