欢迎光临
我们一直在努力
卡尔云 大网数据--高防低价服务器抢购 低至28/月十堰4-4就在零零陆云计算 金华高防物理机 40H64G 30M 158/月 819云计算香港20MCN2 300元/月
林枫云-专注独立IP高频VPS 低价高性价比—迅速云 GoDo云计算韩国物理机低至299元/月 龍行数据:美国100M服务器 299元/月 络V云计算:新加坡100M服务器 1200元/月
CNMCDN防护稳定又实惠 轻松云:美国200兆VPS16元/月 亦宁云200M大带宽 动态BGP低至35/月 低价高效上云-道之云网络 【科御云】香港CDN、延迟低速度快防御高

卸载阿里云预安装的软件

我们买了阿里云的vps,使用阿里云的操作系统,他们预安装了不少软件:安骑士,云盾,云监控什么的,这个时候我们就需要自己手动删除,虽然官方也有卸载教程.但是不是很彻底.

卸载云监控(Cloudmonitor)

云监控有 Java 版本和 Go 语言版本两种,可以根据其安装目录 /usr/local/cloudmonitor/ 下的文件名判断你的服务器上装的具体是哪一种。

下面分别介绍两个版本的卸载方法。

  • 卸载云监控 Java 版
# 停止
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh stop

# 卸载
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && \
rm -rf /usr/local/cloudmonitor

官方文档页面链接:https://help.aliyun.com/knowledge_detail/38859.html

  • 卸载云监控 Go 语言版
# 从系统服务中移除
/usr/local/cloudmonitor/CmsGoAgent.linux-${ARCH} uninstall

# 停止
/usr/local/cloudmonitor/CmsGoAgent.linux-${ARCH} stop

# 卸载
/usr/local/cloudmonitor/CmsGoAgent.linux-${ARCH} stop && \
/usr/local/cloudmonitor/CmsGoAgent.linux-${ARCH} uninstall && \
rm -rf /usr/local/cloudmonitor

其中的 ${ARCH} 需改成你系统对应的架构( amd64 或 386 ),也可以直接查看 /usr/local/cloudmonitor/ 目录下对应文件的文件名。

官方文档页面链接:https://help.aliyun.com/document_detail/97929.html

  • 卸载云盾(安骑士)

官方文档页面只介绍了怎么在控制台去卸载,手动卸载的操作步骤需要提交工单获取,不是很方便.在这里介绍一种用脚本手动卸载的方法(其实用的也是官方提供的两个脚本),执行以下命令即可.

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

上面的脚本运行完之后可能还会有一些文件/文件夹残留,所以我们手动删除一下(如果提示文件不存在就不用管了)

sudo rm -r /usr/local/aegis
sudo rm /usr/sbin/aliyun-service
sudo rm /lib/systemd/system/aliyun.service

好了,经过以上处理,基本上就干净了.如果你有什么更好的方法可以联系我.感谢阅读本文,谢谢.

赞(0)
未经允许不得转载:沃园 » 卸载阿里云预安装的软件

评论 抢沙发

评论前必须登录!

立即登录   注册