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

Eclipse启动Tomcat错误:Several ports (8080, 8009) required by Tomcat v7.0 Server at localhost are already

判断8080、8009端口已经被占用, 通过以下方法,找出被哪个进程占用: 在命令提示符下,输入netstat -aon | findstr 8080 获得该端口被PID为848的进程占用 输...
  • yanzel
  • yanzel
  • 2013年08月21日 22:41
  • 5291

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

1 错误描述 Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in u...
  • you23hai45
  • you23hai45
  • 2015年01月02日 15:42
  • 7763

Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are解决方法

Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are Several ports (800...
  • zdp072
  • zdp072
  • 2016年02月23日 17:48
  • 2451

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

Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. T...
  • JeamKing
  • JeamKing
  • 2010年05月31日 16:47
  • 38443

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

一 异常来源:启动Tomcat服务器报错:      Several ports (8080, 8009) required by Tomcat v7.0 Server at localhost ar...
  • xiaoshunzi111
  • xiaoshunzi111
  • 2015年12月02日 10:17
  • 9125

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

今天用eclipse调试程序,eclipse卡死,我就在任务管理器将eclipse任务结束了。结果重新打开eclipse时,启动tomcat时候一直报8080端口被占用如下错误: Several p...
  • zl544434558
  • zl544434558
  • 2015年01月08日 15:14
  • 2676

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

使用eclipse的时候出现这个问题:Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are ...
  • tomoto_zh
  • tomoto_zh
  • 2016年07月17日 13:19
  • 3852

Severalports (8005, 8080, 8009) required by MyEclipseTomcat v7.0 are already in use.

本文内容:在myeclipse中使用tomcat出现的几个问题与解决方案,包括以下三种: 报错内容:Several ports (8005, 8080, 8009) required by MyEcl...
  • spring_willow
  • spring_willow
  • 2017年05月10日 15:36
  • 1512

Several ports (8005, 8080, 8009) required by MyEclipse Tomcat v7.0 are already in use. The server ma

win10系统 在使用MyEclipse开发过程中偶尔遇到这种情况: 大概意思是说这些端口被占用了导致tomcat无法启动,但查看任务管理器中并没有进程使用这些端口。 在网上查了一些解决方法...
  • SoftwareOscar
  • SoftwareOscar
  • 2017年10月13日 17:59
  • 202

Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost解决方法

Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are Several ports (8...
  • u013408159
  • u013408159
  • 2015年10月15日 15:17
  • 1080
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Several ports (8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.
举报原因:
原因补充:

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