启动tomcat时报错Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already
Posted Frankiee
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了启动tomcat时报错Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already 相关的知识,希望对你有一定的参考价值。
【报错】
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没有被关闭,端口占用。
亦或是其他软件占用了tomcat的端口号。
【解决方法一】杀掉占用端口的软件
(windows下) 打开任务管理器 -- > 找到jvm相关的进程 ‘javaw.exe‘ ,右键 ‘结束任务‘
[如以上的方法还是没有解决错误,那么往下]
(windows下的cmd) 输入命令:
#netstat -ano #netstat -an | grep 8080
确认具体是哪个进程占用了8080, 8089的端口 --> 找到占用端口进程的PID --> 在任务管理器中找到对应PID的进程进行结束
方式:查看---> 选择列--->勾选“PID(进程标识符)”
【解决方法二】修改tomcat中的默认端口号
打开tomcat的配置文件 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时报错Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already 的主要内容,如果未能解决你的问题,请参考以下文章
错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)(转)
Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The
端口占用 Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use
elipse tomcat报Several ports (8005, 8080, 8009) 端口被占用问题解决方案
Java tomcat Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost