12 lines
481 B
PowerShell
12 lines
481 B
PowerShell
Write-Output "local agent:"
|
|
cmd /c "curl.exe -s http://127.0.0.1:8910/health"
|
|
Write-Output ""
|
|
Write-Output "via nginx host header:"
|
|
cmd /c "curl.exe -sk -H Host: ai.ytd-scm.com https://127.0.0.1/agent/health"
|
|
Write-Output ""
|
|
Write-Output "via nginx wecom health:"
|
|
cmd /c "curl.exe -sk -H Host: ai.ytd-scm.com https://127.0.0.1/wecom/callback/health"
|
|
Write-Output ""
|
|
Write-Output "error log tail:"
|
|
Get-Content "C:\nginx-1.18.0\logs\error.log" -Tail 20 -ErrorAction SilentlyContinue
|