|
阿里云、腾讯云的服务器都自带监控(AliYunDun/阿里云盾/安骑士),大家都不想自己的所作所为都被监控着,我们总想着自己买的东西能够完全自己做主,所以我们需要让他的监控失效,卸载监控
卸载阿里云ecs服务器AliYunDun
点击左侧【主机资产】,找到对应需要关闭的服务器右侧的【查看】
https://yundun.console.aliyun.com/
2.把下图中四项全部关闭掉。
【客户端自保护】
【网站后门连接防御】
【恶意网络行为防御】
【恶意主机行为防御】
方案1:卸载
第一步:SSH连接阿里云服务器,在终端中输入下方命令,进行卸载AliYunDun操作
- 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
复制代码 第二步:继续在终端中输入下发命令,删除AliYunDun残留
- pkill aliyun-service
- rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
- rm -rf /usr/local/aegis*
复制代码 第三步:屏蔽云盾IP。执行下面命令通过“iptables”防火墙来屏蔽云盾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'
复制代码
无内容表示已经卸载干净,有内容表示没有卸载完。如下:
- root 5207 4354 0 00:25 pts/0 00:00:00 grep –color=auto AliYunDun
复制代码 方案2:关闭 AliYunDun
使用 chkconfig –list 查看开机启动里面这个软件的服务名是什么,然后 off 掉 aegis 执行就可以了。
- # 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
复制代码 如果想开机不启动的话,
chkconfig –del aegis 这个 就是你找出来的 aliyundun 的后台服务。
- service aegis stop # 停止服务
- chkconfig --del aegis # 删除服务
复制代码
如果还有残留,可通过以下命令结束进程
- ps -ef | grep -v grep | grep -i aliyundun | awk '{print $2}' | xargs kill -9
复制代码
原文地址:https://www.77nn.net/3182.html
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
温馨提示:本网站所展示的内容均由注册会员自行发布,这些内容仅代表作者本人的观点和立场,并不代表本网站的官方立场或意见。我们致力于打造一个开放的社区平台,鼓励用户自由表达和分享信息。然而,我们也明确声明,对于用户发布的内容,我们不承担任何法律责任。
|