今天启动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).”

  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.

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

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

  步骤:

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

   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.

  2.输入“cmd”

  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.

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

   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.

  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.

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

  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.

相关文章:

  • 2021-05-16
  • 2021-09-16
  • 2021-12-26
  • 2021-10-31
  • 2021-09-24
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2022-02-06
  • 2022-12-23
  • 2021-04-15
  • 2021-08-27
  • 2021-12-22
  • 2022-12-23
  • 2022-02-02
相关资源
相似解决方案