0203a65973
Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
321 B
PowerShell
13 lines
321 B
PowerShell
# PM2 停止脚本 (Windows PowerShell)
|
|
# 用法: .\pm2-stop.ps1
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
if (-not (Get-Command pm2 -ErrorAction SilentlyContinue)) {
|
|
Write-Host "[错误] 未找到 pm2" -ForegroundColor Red
|
|
exit 1
|
|
}
|
|
|
|
pm2 stop api-key-manager
|
|
Write-Host "已停止 api-key-manager" -ForegroundColor Green
|