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
可以看到如下所示: