启动Tomcat服务报错,端口被占用解决方案
2016-07-19 11:21
621 查看
启动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"中的端口改为一个没有被占用的端口。
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"中的端口改为一个没有被占用的端口。
相关文章推荐
- java-模拟tomcat服务器
- i-jetty环境搭配与编译
- 实现单Tomcat多Server配置
- 生产环境下的Tomcat配置
- Linux部署Tomcat服务器
- jenkins------结合maven将svn项目自动部署到tomcat下
- 如何搞定tomcat这只喵~
- Patrol 7 架构下?的处理方法
- 中病毒后常用的解决方法病毒终极解决方案
- QQ尾巴 InfoMs.Ime 解决方案
- IE对CSS样式表的限制分析与解决方案
- 开源MySQL高效数据仓库解决方案:Infobright详细介绍
- tomcat在opensuse下开机自启失败的原因分析及解决方法
- 惊现支撑1亿pv/天的超级数据库解决方案
- jsp项目中更改tomcat的默认index.jsp访问路径的方法
- Tomcat 多端口 多应用
- tomcat 5.0 + apache 2.0 完全安装步骤详解
- Tomcat安全设置 win2003 下tomcat权限限制
- 关于bluehost空间上wordpress后台变为英文的解决方案