需知誰佔用特定 Port (如 9050),三步指令搞定:
netstat -anonetstat -aon | findstr "9050"TCP 127.0.0.1:9050 0.0.0.0:0 LISTENING 2016 → PID=2016tasklist | findstr "2016"tor.exe 2016 Console 0 16,064 Ktaskkill /f /t /im tor.exe (/f 強制、/t 連同子進程、/im 映像名稱)任務管理員替代法:Ctrl+Shift+Esc → 「詳細資料」頁籤 → 右鍵標題列勾選「PID」→ 依 PID 排序尋找。
Linux/macOS 同理:lsof -i :9050 或 netstat -tlnp | grep 9050 (需 root)。