查看端口占用情况并杀死它
2020-11-04 本文已影响0人
行走的蛋白质
windows
- 查找所有运行的端口
netstat -ano
- 查看被占用端口对应的 PID
netstat -aon|findstr "8081"
- 查看指定 PID 的进程
tasklist|findstr "9088"
- 结束进程
taskkill /T /F /PID 9088
netstat -ano
netstat -aon|findstr "8081"
tasklist|findstr "9088"
taskkill /T /F /PID 9088