Tomcat启动错误,端口占用
2013-07-24 10:17
423 查看
错误信息:
Several ports (8080, 8009) required by Tomcat v7.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).
原因端口被占用,很有可能之前起过一个tomcat进程。
转:
原因:端口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"中的端口改为一个没有被占用的端口。
Several ports (8080, 8009) required by Tomcat v7.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).
原因端口被占用,很有可能之前起过一个tomcat进程。
转:
原因:端口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"中的端口改为一个没有被占用的端口。
相关文章推荐
- idea端口被占用,启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法
- 查看端口占用情况(tomcat启动出现Unrecognized Windows Sockets error: 0: JVM_Bind错误)
- IDEA Debug启动tomcat报60659端口占用错误
- eclipse下的tomcat突然无法启动——报端口已被占用或tomcat已经开启错误
- Tomcat启动错误,端口占用
- idea中启动tomcat时遇到1099端口被占用的错误
- 启动Tomcat时出现端口占用错误
- Linux下用eclipse启动tomcat时端口被占用错误
- Eclipse启动Tomcat错误:Several ports (8080, 8009)端口被占用
- [Idea]idea debug 启动tomcat报端口占用错误
- tomcat启动了两次,导致mina监听的端口报端口被占用的错误
- tomcat启动错误 之 端口被占用
- javaEE 无法安装axis2 1.6插件;Tomcat无法启动,提示端口占用;Tomcat服务发布;axis2发布配置;syso自动补全
- XAMPP启动MySQL时报端口被占用错误
- 详解IDEA 启动tomcat 端口占用原因以及解决方法( 使用debug模式)
- Eclipse启动Tomcat端口被占用解决方法
- XAMPP启动MySQL时报端口被占用错误
- 【myEclipse】启动Tomcat服务器报错:端口占用
- Tomcat启动时报异常:端口占用的解决办法
- tomcat端口占用无法启动的解决方法