宇恒一号官网

This commit is contained in:
whm
2026-03-17 00:59:32 +08:00
commit eb56519df7
105 changed files with 10783 additions and 0 deletions

11
scripts/kill-ports.ps1 Normal file
View File

@@ -0,0 +1,11 @@
# Kill processes on ports 8080/3000/3001
$ports = @(8080, 3000, 3001)
foreach ($p in $ports) {
$conn = Get-NetTCPConnection -LocalPort $p -ErrorAction SilentlyContinue
if ($conn) {
$conn | ForEach-Object {
Stop-Process -Id $_.OwningProcess -Force -ErrorAction SilentlyContinue
}
Write-Host "Port $p released"
}
}