1.查找所有运行的端口
netstat -ano
2.查看被占用端口对应的 PID
netstat -ano|findstr "8111"
3.查看指定 PID 的进程
tasklist|findstr "22812"
4.结束进程
taskkill /t /f /pid 10604
1.查找所有运行的端口
netstat -ano
2.查看被占用端口对应的 PID
netstat -ano|findstr "8111"
3.查看指定 PID 的进程
tasklist|findstr "22812"
4.结束进程
taskkill /t /f /pid 10604