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

转载 2015年11月18日 15:41:22

Answer:

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 /bin subfolder 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 (this is namely intented for production and is unhelpful when you're just developing), open the services manager (Start > Run > services.msc) and stop the Tomcat service. If necessary, uninstall the Windows service altogether. For development, just the ZIP file is sufficient.

Or if your actual intent 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.



Answer:

If you are running on windows try this in the command line prompt:

netstat -ano

This will show all ports in use and the process id PID # of the process that is using that port. Then Ctrl+Alt+Del and open task manager to see which process is that.

You can then choose either to close/stop it or configure your server to use another port. To check if the new choosen port (let's say 8010) is available do this:

netstat -ano | grep 8010

If it does not return any lines then you are fine.

To change the port go to the Server view, open server.xml and change the port there. Mine has this entry:

Connector port="8010" protocol="AJP/1.3" redirectPort="8443"

Hope this helps



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

Several ports (8005, 8080, 8009) required by Tomcat v7.0

问题:发布服务到Tomcat时,出现端口被占用 Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at loca...

错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)

启动Tomcat服务器报错:Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are alrea...

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

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

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

解决方式 启动任务管理器>>找到进程>>找到javaw.exe*32>>结束该进程 再次运行项目,没有任何问题...

“Several ports ( 8088, 8009) required by Tomcat v6.0 Server at localhost are already in use. The ser

“Several ports ( 8088, 8009) required by Tomcat v6.0 Server at ...”错误信息为:Tomcat运行的端口被别的程序占用。...

“Several ports ( 8088, 8009) required by Tomcat v6.0 Server at localhost are already in use. The ser

Tomcat运行的端口被别的程序占用,找出是哪个程序占用了端口:在控制台(黑窗口)里用“netstat -abn”命令查看正在运行的程序所占用的端口以及相关信息,可以看到,是"javaw.exe"这个...

Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost

可能还有种方法:安装完成Tomcat时不要选运行软件 解决方法: 方法1:杀掉占用端口的软件。 打开任务管理器,找到Java虚拟机相关的进程javaw.exe,将它结束掉。如果问题没有解决,...

tomcat提示端口被占用,Tomcat v7.0 Server at localhost are already in use,tomcat端口已经被使用

一、问题描述: 有时eclipse异常退出时,tomcat没有关掉,再启动打开eclipse启动tomcat时会提示:Tomcat v7.0 Server at localhost are al...

Tomcat v5.5 Server at localhost are already in use

启动Tomcat服务器报错: Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are alre...

STS: Port 8080 required by Pivotal tc Server Developer is already in use

STS: Port 8080 required by Pivotal tc Server Developer is already in use 问题描述:使用 STS 开发 Spring MVC 程...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Several ports (8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.
举报原因:
原因补充:

(最多只允许输入30个字)