Window 查看端口进程使用

1. 查看所有端口占用

netstat -ano

Window 查看端口进程使用

2. 查看指定端口占用

netstat -ano | findstar "8080"

Window 查看端口进程使用

其中11152 对应为进程号

3. 查看进程号对应的进程

tasklist | findstr "11152"

Window 查看端口进程使用

 

4. 结束进程

taskkill /f /t /im javaw.exe


本文转自Work Hard Work Smart博客园博客,原文链接:http://www.cnblogs.com/linlf03/p/6385142.html,如需转载请自行联系原作者