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

本文介绍了解决Tomcat服务器因端口冲突无法启动的问题,提供了检查被占用端口及释放端口的方法,并指导如何更改Tomcat配置文件以避免此类问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


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).
    在eclipse非正常关闭或者没关闭掉tomcat情况下,虽然eclipse关掉了,但是Tomcat服务器没有关。若重新使用eclipse会出现上述错误。这种状况解决方法把占用的端口关掉就可以了。目前我没找到能关闭端口的命令行工具。不过可以使用Microsoft的TcpView.zip 来关掉占用的端口,下载地址:http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx


 


tomcat    oracle  占用8080端口


Program Files\Apache Software Foundation\Tomcat 6.0\conf\server.xml


1、修改端口为8000


<Connector port="8000" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />


2、eclipse重新加载tomcat


[windows]-preference-server


窗口servers-new-


ok


Eclipse启动Tomcat错误:

Several ports (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).

可以判断8080、8009端口已经被占用,通过以下方法,找出被哪个进程占用:

在命令提示符下,输入netstat -aon | findstr 8080

获得该端口被PID为848的进程占用

输入tasklist |findstr 848:

可以获得当前端口被javaw.exe占用

继续输入taskkill -F -IM javaw.exe或taskkill /pid 848 /F

结束该进程

再次在eclipse中启动tomcat正常


评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值