Merge branch 'master' of github.com:Erope/nezha

This commit is contained in:
Erope 2022-05-16 23:31:15 +08:00
commit ff3e146584
No known key found for this signature in database
GPG Key ID: 934F29AB0411C0E9

View File

@ -1,5 +1,5 @@
#Get server and key #Get server and key
param($server, $key) param($server, $key, $tls)
# Download latest release from github # Download latest release from github
$repo = "naiba/nezha" $repo = "naiba/nezha"
# x86 or x64 # x86 or x64
@ -59,7 +59,7 @@ Remove-Item "C:\nezha.zip"
Remove-Item "C:\nssm.zip" Remove-Item "C:\nssm.zip"
Remove-Item "C:\temp" -Recurse Remove-Item "C:\temp" -Recurse
#安装部分 #安装部分
C:\nezha\nssm.exe install nezha C:\nezha\nezha-agent.exe -s $server -p $key -d C:\nezha\nssm.exe install nezha C:\nezha\nezha-agent.exe -s $server -p $key $tls -d
C:\nezha\nssm.exe start nezha C:\nezha\nssm.exe start nezha
#enjoy #enjoy
Write-Host "Enjoy It!" -BackgroundColor DarkGreen -ForegroundColor Red Write-Host "Enjoy It!" -BackgroundColor DarkGreen -ForegroundColor Red