启动Tomcat服务器报错:
Several ports (8005, 8080, 8009) required by Tomcat v5.5 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).
原因:端口8005, 8080, 8009被占用了。可能是在打开Tomcat的情况下关闭了Eclipse,或是Eclipse非正常关闭,导致先前的Tomcat没有被关闭,端口占用。
解决方法:
1)、打开任务管理器,找到Tomcat的进程javaw.exe,将它结束掉。没有解决,往下看。
如果没有这个进程,那可能是其他软件占用了端口。
在开始菜单->运行->cmd->输入netstat -anb命令,可以查看时哪个进程占用了8080和8009端口,然后在任务管理器中关闭该进程即可。
2)、修改Tomcat的配置文件。
例如:C:/tomcat5.5.25/conf/server.xml
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
将port="8080"中的端口改为一个没有被占用的端口。
相关文章
- tomcat 启动报错: Failed to start component [StandardEngine[Catalin
- 利用Maven管理工程项目本地启动报错及解决方案
- tomcat7时遇到启动报错问题 SEVERE: ContainerBase.addChild: start:
- IDEA之Lombok注解不生效解决方案(有注解、有插件、代码不报错,但是启动项目报错)
- RabbitMQ启动报错ERROR: distribution port 25672 in use by another node: 解决方案
- hbuilderx为什么打不开_windows系统,HBuilderX无法启动、点击无反应、或启动报错的解决方案...
- 启动tomcat,报错 Error occurred during initialization of VM Could not reserve enough space for object
- tomcat启动spring boot项目报错::
- Nacos启动报错Unable to start embedded Tomcat
- Nginx无法启动并且报错信息为duplicate upstream的解决方案