
- Windows下查看所有端口
1 |
netstat -ano |
- 查询指定的端口占用的PID号
1 |
netstat -ano|findstr "8080" |
- 查询PID对应的进程
如果上面查询的PID号为”233”
1 |
tasklist|findstr "233" |
- 杀死进程
我们也可以在任务管理器中
1 |
taskkill /f /t /im 程序名 |

1 |
netstat -ano |
1 |
netstat -ano|findstr "8080" |
如果上面查询的PID号为”233”
1 |
tasklist|findstr "233" |
我们也可以在任务管理器中
1 |
taskkill /f /t /im 程序名 |
近期评论