如何查看端口占用情况

今天开发使用Eclipse创建了一个动态网页工程,在运行时却说,8080端口被占用了,于是通过以下方法找到占用8080端口的进程。

 

在“开始”-->“运行”-->“cmd”中,按如下所示输入命令就可以了。

 

 

 

C:\>netstat -ano|findstr "8080"
  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       4308

C:\>tasklist|findstr "4308"
ReportingServicesService.   4308 Console                 0     54,364 K


即先找到进程号为4308的进程占用了8080端口,再根据4308这个进程号找到了名为ReportingServicesService的进程。

Add comment

Loading