Several ports (8005, 8080, 8009) required by Tomcat Server at localhost are already in use


我出现此情况的解决是下面粗体显示的。


http://stackoverflow.com/questions/5064733/several-ports-8005-8080-8009-required-by-tomcat-server-at-localhost-are-alre


I'm getting the following error when I try to run a simple JSP program on Tomcat in Eclipse. 

Several ports (8005, 8080, 8009) required by Tomcat v6.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).


You've another instance of Tomcat already running. You can confirm this by going to http://localhost:8080

in your webbrowser and check if you get the Tomcat default home page or a Tomcat-specific 404 error page.

Both are equally valid evidence that Tomcat runs fine; if it didn't, then you would have gotten

 a browser specific HTTP connection timeout error message.

You need to shutdown it. Go to /binsubfolder of the Tomcat installation folder and execute the shutdown.

bat(Windows) or shutdown.sh(Unix) script. If in vain, close Eclipse and then open the task manager

 and kill all java and/or javaw processes. Or if you actually installed it as a Windows service for some reason,

 open the services manager (Start > Run > services.msc) and stop the Tomcat service.

Or if your actualintent is to run two instances of Tomcat simultaneously, then you have to configure

 the second instance to listen on different ports. Consult the Tomcat documentation for more detail.


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值