阿里云ECS关闭删除安骑士

阿里云ECS关闭删除安骑士

Linux 服务器运维人员,都有一定程度的“洁癖”,既然是没有卵用的东西,自然就要关停掉,作为一个常驻后台的进程始终给人的感觉怪怪的。

其实已经注意这货很久了,以前是担心会对阿里云服务有影响,后来发现仅仅是个摆设而已,

不搜索不知道,竟然有那么多站长们都已经关闭和清除阿里云盾(安骑士)了,并且好像方法还有好多种呢

方法1:卸载云盾监控屏蔽 IP

阿里云云盾管理页面:https://yundun.console.aliyun.com/?p=aqs#/aqs/settings/setInstall

阿里云官网手动卸载:https://help.aliyun.com/document_detail/31777.html

1、卸载阿里云盾监控

wget http://update.aegis.aliyun.com/download/uninstall.sh
sh uninstall.sh
wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh
sh quartz_uninstall.sh

2、删除残留

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

3、屏蔽云盾 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

方法2:CentOS 关闭 AliYunDun

使用 chkconfig --list 查看开机启动里面这个软件的服务名是什么,然后 off 掉 aegis 执行就可以了。

chkconfig --list

如果想开机不启动的话,chkconfig --del aegis 这个 aegis 就是你找出来的 aliyundun 的后台服务。

service aegis stop  # 停止服务
chkconfig --del aegis  # 删除服务

方法3:阿里云服务器关闭云盾

阿里云服务器查杀关闭云盾进程

# top

查杀关闭云盾进程处理过程如下:

# ps -ef | grep -v grep | grep -i aliyundun
# ps -ef | grep -v grep | grep -i aliyundun | awk '{print $2}'
# ps -ef | grep -v grep | grep -i aliyundun | awk '{print $2}' | xargs kill -9

删除阿里云登录界面欢迎信息

Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-19-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Welcome to Alibaba Cloud Elastic Compute Service !
Last login from

查看 vim /etc/motd(设置登录欢迎界面)

就可以编辑/删除 Welcome to Alibaba Cloud Elastic Compute Service ! 欢迎信息了。

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Richie-Hao

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值