一键运行 (One-click Execution)
bash <(curl -s https://raw.githubusercontent.com/everett7623/Nezha-cleaner/main/nezha-agent-cleaner.sh)或者 (or)
bash <(wget -qO- https://raw.githubusercontent.com/everett7623/Nezha-cleaner/main/nezha-agent-cleaner.sh)或者 (or)
wget -O nezha-agent-cleaner.sh https://raw.githubusercontent.com/everett7623/Nezha-cleaner/main/nezha-agent-cleaner.shchmod +x nezha-agent-cleaner.shsudo ./nezha-agent-cleaner.sh📋 清理步骤 (Cleaning Steps)
脚本将执行以下步骤来彻底清理哪吒探针Agent: The script will perform the following steps to thoroughly clean up the Nezha Agent:
- 检查进程 - 识别所有正在运行的哪吒探针进程
- 检查定时任务 - 查找并删除相关的crontab条目
- 停止服务 - 停止并禁用所有哪吒探针相关的systemd服务
- 终止进程 - 强制终止所有相关进程
- 删除服务文件 - 清理系统中的所有服务配置文件
- 删除二进制文件 - 移除所有执行文件和安装目录
- 查找相关文件 - 全面扫描并删除所有相关文件
- 重载系统配置 - 刷新systemd配置
- 检查Docker容器 - 识别并提供清理相关Docker容器的选项
- 最终验证 - 确认所有内容已被清理
评论 (0)