windows安装v0哪吒agent

friend 发布于 2025-07-16 83 次阅读


AI 摘要

在安装v0哪吒agent的过程中,确保每一步都获得正确的系统管理员权限至关重要。通过手动下载和解压安装程序,测试agent的连通性,并以powershell进行服务安装和启动,你可以轻松管理和维护服务状态。本文详细解剖每一步安装过程,提供了完整的代码示例和可能的删除、升级指南,旨在助力你的哪吒agent体验顺畅无忧。

1.手动下载20.5 agent安装程序:

2.手动把agent程序解压到C:\nezha或其他路径

3.测试agent的连通性

使用管理员运行powershell以下代码:

C:\nezha\nezha-agent.exe -s 域名:端口 -p 密钥

4.安装agent服务

使用管理员运行powershell以下代码

C:\nezha\nezha-agent.exe service install -s 域名:端口 -p 密钥 

5.启动agent服务

使用管理员运行powershell以下代码

Start-Service -Name "nezha-agent"  

6.其他:

如果你想删除,或者删除之前安装的旧agent,可以使用以下命令。

Stop-Service -Name "nezha-agent" -ErrorAction SilentlyContinue
Remove-Item -Path C:\nezha -Recurse -Force 

如果你想卸载现在agent再重装,比如为了更新主控节点和密钥,使用这个命令。

C:\nezha\nezha-agent.exe service uninstall 
此作者没有提供个人介绍。
最后更新于 2025-08-05