Winserver 哪吒面板启动命令

发布时间 2023-05-06 10:50:05作者: 木子欢儿

下载,并放在C盘nezha文件夹下
"https://github.com/naiba/nezha/releases/download/v0.14.11/nezha-agent_windows_amd64.zip"
"https://github.com/nezhahq/nssm-backup/releases/download/v2.24/nssm.zip"
在Poswershell中执行

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Ssl3 -bor [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12;set-ExecutionPolicy RemoteSigned;C:\nezha\nssm.exe install nezha C:\nezha\nezha-agent.exe -s ip -p key $tls -d 
C:\nezha\nssm.exe start nezha