错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
2018-04-02 09:26
639 查看
启动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没有被关闭,端口占用。或是其他软件占用了tomcat的端口号。解决方法:
方法1:杀掉占用端口的软件。打开任务管理器,找到java虚拟机相关的进程javaw.exe,将它结束掉。如果问题没有解决,往下看。
如果没有这个进程,那可能是其他软件占用了端口。
在开始菜单->运行->cmd->输入 netstat -ano 命令,可以查看哪个进程占用了8080和8009端口,找到占用端口软件的PID,然后在任务管理器找到对应PID的软件,关闭结束该进程即可。如果任务管理器中没有显示PID列,需要设置,查看---》选择列---》勾选“PID(进程标识符)”。
8080,8009对应的pid为612.
在任务管理器中找到612号对应的进程,关闭此进程即可。
方法2:修改tomcat默认端口号。修改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" />Connector 节点,将port="8080"中的端口改为一个没有被占用的端口。
原因:端口8005, 8080, 8009被占用了。可能是在打开Tomcat的情况下关闭了Eclipse,或是Eclipse非正常关闭,导致先前的Tomcat没有被关闭,端口占用。或是其他软件占用了tomcat的端口号。解决方法:
方法1:杀掉占用端口的软件。打开任务管理器,找到java虚拟机相关的进程javaw.exe,将它结束掉。如果问题没有解决,往下看。
如果没有这个进程,那可能是其他软件占用了端口。
在开始菜单->运行->cmd->输入 netstat -ano 命令,可以查看哪个进程占用了8080和8009端口,找到占用端口软件的PID,然后在任务管理器找到对应PID的软件,关闭结束该进程即可。如果任务管理器中没有显示PID列,需要设置,查看---》选择列---》勾选“PID(进程标识符)”。
8080,8009对应的pid为612.
在任务管理器中找到612号对应的进程,关闭此进程即可。
方法2:修改tomcat默认端口号。修改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" />Connector 节点,将port="8080"中的端口改为一个没有被占用的端口。
相关文章推荐
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)【转】
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- 错误记录--报tomcat端口号方法,Several ports (8005, 8080, 8009) required by Tomcat
- 错误提示--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- Java启动Server报错--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- tomcat运行程序失败:更改端口号方法,Several ports (8005, 8080, 8009)
- tomcat端口号修改方法,Several ports (8005, 8080, 8009)
- Eclipse启动Tomcat错误:Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already(转载)