2024年4月15日发(作者:)

在企业版Eclipse中,在已经启动了Tomcat服务器后,准备运行页面或Servlet时,有时

会出现这样的关于Tomcat服务器端口占用的问题:

“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).”

错误信息的大意是说Tomcat运行所需的那三个端口被被的程序占用了。

我个人遇到过的的原因大概有以下几种:

情况一:点击运行的时候没有选中页面或Servlet窗口的标签

情况如下图: