9 lines
417 B
PowerShell
9 lines
417 B
PowerShell
Write-Output "=== ai.conf head ==="
|
|
Get-Content "C:\nginx-1.18.0\myconf\ai.conf" -TotalCount 45 | ForEach-Object { $_ }
|
|
Write-Output "=== try bounce ==="
|
|
if (Test-Path "C:\yutongda\bounce_nginx.ps1") {
|
|
Write-Output "found bounce_nginx.ps1"
|
|
}
|
|
Get-Service | Where-Object { $_.Name -match "nginx|Nginx" } | Format-Table Name, Status
|
|
Get-Process nginx -ErrorAction SilentlyContinue | Format-Table Id, ProcessName, Path
|