哪吒探针卸载agent教程
最近[有传闻](https://t.me/nezhamonitoring/262020)哪吒有0day漏洞![](https://ice.frostsky.com/2024/11/30/26653ae50960f891505db1a70eed1925.png)
不管怎样先把dashboard和agent停了吧
停止agent:
```
systemctl stop nezha-agent
```
取消开机自动启动:
```
systemctl disable nezha-agent
```
删除agent二进制文件:
```
rm -rf /opt/nezha
```
删除service:
```
rm /etc/systemd/system/nezha-agent.service
```
## 如果嫌麻烦可以直接复制执行
```
systemctl stop nezha-agent
systemctl stop nezha-dashboard
systemctl disable nezha-agent
systemctl disable nezha-dashboard
rm -f /etc/systemd/system/nezha-agent.service
rm -f /etc/systemd/system/nezha-dashboard.service
rm -rf /opt/nezha
rm -rf /etc/nezha
rm -rf /var/log/nezha
systemctl daemon-reload
echo "哪吒面板已完全移除"
``` bd
页:
[1]