# 快速看 8180 是否还活着 $ErrorActionPreference = 'Continue' $c = Get-NetTCPConnection -LocalPort 8180 -State Listen -EA SilentlyContinue | Select-Object -First 1 if ($c) { "8180 LISTEN pid=$($c.OwningProcess)" } else { '8180 down' } $p8080 = Get-NetTCPConnection -LocalPort 8080 -State Listen -EA SilentlyContinue | Select-Object -First 1 if ($p8080) { "8080 LISTEN pid=$($p8080.OwningProcess)" } else { '8080 down' } $p8910 = Get-NetTCPConnection -LocalPort 8910 -State Listen -EA SilentlyContinue | Select-Object -First 1 if ($p8910) { "8910 LISTEN pid=$($p8910.OwningProcess)" } else { '8910 down' } try { $r = Invoke-WebRequest -Uri 'http://127.0.0.1:8180/jeecgboot/sys/randomImage/deploycheck' -UseBasicParsing -TimeoutSec 8 "8180_randomImage=$($r.StatusCode) bytes=$($r.RawContentLength)" } catch { $code = $null try { $code = $_.Exception.Response.StatusCode.value__ } catch {} "8180_randomImage FAIL code=$code msg=$($_.Exception.Message)" } Get-CimInstance Win32_Process -Filter "Name='java.exe'" | ForEach-Object { if ($_.CommandLine -like '*inquiry-new*') { "java pid=$($_.ProcessId) alive" } } Write-Output 'QUICK_DONE'