Port 8009 required by Tomcat v8.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port.

  今天启动web项目时报错“Port 8009 required by Tomcat v8.0 Server at localhost is 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).”

  

  问题分析:端口 8080, 8009被占用了。可能是在打开Tomcat的情况下关闭了Eclipse,或是Eclipse非正常关闭,导致先前的Tomcat没有被关闭,端口占用,又或是其他软件占用了tomcat的端口号。

  解决办法:杀掉占用端口的软件。

  步骤:

  1.右键“开始”,点击“运行”。

   

  2.输入“cmd”

  

  3.输入"netstat -ano"命令,可以查看哪个进程占用了8080和8009端口,找到占用端口软件的PID,然后在任务管理器找到对应PID的软件,关闭结束该进程即可。如果任务管理器中没有显示PID列,需要设置,查看---》选择列---》勾选“PID(进程标识符)”。 

   

  

   在任务管理器中找的12568对应的进程,结束该进程后重启Eclipse中Tomcat即可。

  

猜你喜欢

转载自www.cnblogs.com/qilin20/p/12342866.html