Word-break: break-all; border: 0px; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); color: rgb(51, 51, 51); font-family: Gotham-Book, -apple-system, BlinkMACSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei", "Source Han Sans CN", sans-serif; white-space: normal;">阿里云、腾讯云的服务器都自带监控(AliYunDun/阿里云盾/安骑士教程),大家都不想自己的所作所为都被监控着,比如我在上面安装SS服务,一旦云监控查到,会被警告,很麻烦,我们总想着自己买的东西能够完全自己做主,所以我们需要让他的监控失效,卸载监控!

第一步:SSH连接阿里云服务器,在终端中输入下方命令,进行卸载AliYunDun操作

wget  chmod +x uninstall.sh
./uninstall.shwget  chmod +x quartz_uninstall.sh
./quartz_uninstall.sh

第二步:继续在终端中输入下发命令,删除AliYunDun残留

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

第三步:继续删除阿里云盾残留

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

至此,以上步骤执行过后我们就将监控卸载完毕了。
至于腾讯云,操作方法也一样。

第一步:在默认安装系统的时候不要勾选安全云镜和安全监控软件

第二步:如果安装了监控软件后如何卸载,操作如下:

<PRe class="pure-highlightjs line-numbers language-shell" style="margin-top: 20px; margin-bottom: 20px; padding: 10px 20px; list-style: none; box-sizing: border-box; word-break: normal; border: none; outline: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 12px; line-height: 20px; font-family: "courier new"; vertical-align: baseline; background-color: rgb(74, 74, 74); color: rgb(248, 248, 212); word-spacing: normal; overflow-wrap: break-word; tab-size: 4; hyphens: none; overflow: auto; position: relative; counter-reset: linenumber 0;">/usr/local/qcloud/stargate/admin/uninstall.sh /usr/local/qcloud/YunJing/uninst.sh /usr/local/qcloud/monitor/barad/admin/uninstall.sh