天天看点

如何解决8080端口占用问题

Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

解决方式:kill掉占用8080端口的程序

1.dos下,输入  netstat   -ano|findstr  8080 ,查看占用8080的进程,

2.键入taskkill  /pid  6856  /f ,其中6856为占用8080的进程,结束该进程。

  1. taskkill  /pid  6856  /f 

    //说明,运行windows自带taskkill命令,将上面显示的进程号,结束掉。

    下面有图为证