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

来源:互联网 发布:狮虎兽可以繁殖吗 知乎 编辑:程序博客网 时间:2024/04/30 14:56

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


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 tohttp://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.


原创粉丝点击