Java tomcat Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost

Posted 半懂不懂

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Java tomcat Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost相关的知识,希望对你有一定的参考价值。

关于 下面问题是因为(8005, 8080, 8009) 被原tomcat占用了。

Several ports (8005, 8080, 8009) required by Tomcat v9.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).

在使用eclipse新创建tomcat时server也使用了(8005, 8080, 8009),因此运行项目会报告以上错误。

解决方案简单粗暴,把新创建的server的端口都修改了。找到空间下的server.xml(E:\\eclipse-workspace\\Servers\\Tomcat v9.0 Server at localhost-config\\server.xml),查找到8005, 8080, 8009改成自己想的端口。也可以eclipse里修改,在如下图8005, 8080为8006,8081,8009没有截图出来,大家可以按ctrl+f5查找。改完后,运行就不会再报以上的错误了。

 

以上是关于Java tomcat Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost的主要内容,如果未能解决你的问题,请参考以下文章

错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)

错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)(转)

elipse tomcat报Several ports (8005, 8080, 8009) 端口被占用问题解决方案

启动tomcat时报错Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already

Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost

Eclipse编写JSP,错误Several ports (8005, 80, 8009) required by Tomcat v6.0 Server at localh