- 查找进程
netstat -ano|findstr 8080
- 结束进程
taskkill /f /pid 1484
C:\Users\admin>netstat -ano | findstr 8080
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1484
TCP [::]:8080 [::]:0 LISTENING 1484
C:\Users\admin>taskkill /f /pid 1484
成功: 已终止 PID 为 1484 的进程。