tomcat端口冲突与启动超时问题解决办法

1. tomcat超时问题
错误描述:
Server Apache Tomcat v9.0 at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.在这里插入图片描述
解决办法:
点击到tomcat修改页面,选中Timeouts—starts 的数字即可,数字尽大一点就好了。
在这里插入图片描述

2. tomcat 端口冲突
错误描述:
Several ports (8005, 8080, 8009) required by Apache Tomcat v9.0 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).在这里插入图片描述

解决办法:

(1) 直接重启电脑,然后在打开myeclipse就行,最后就可以启动tomcat了,此时不会存在端口冲突问题。

(2) 用命令来解决:
① 根据8080端口号查找占用8080端口的进程,(打开cmd,输入命令)
netstat -ano|findstr “8080”
可以看到如下显示:
在这里插入图片描述
进程id为:10668
② 根据进程id查找进程名字(输入命令)
tasklist|findstr “10668”
可以看到如下所示:
在这里插入图片描述
进程名字为:javaw.exe
③然后结束这个进程名字,就相当于解决与tomcat端口冲突了(继续输入命令)
taskkill /f /t /im javaw.exe
可以看到如下所示:
在这里插入图片描述

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值