今天,在测试服务器上搭建了一个eclipse开发环境,然后写了一个小程序,发布到tomcat上。由于在服务上已有一个tomcat7.0,而eclipse又搭建了一个tomcat7.0,在启动tomcat7.0时,报了一个错误,如下:
Several ports (8005, 8080, 8009) required by Tomcat v8.5 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).
根本原因:是你ecplise中的tomcat和你本机的tomcat冲突导致的。
解决办法:关闭本机的tomcat在运行ecplise中的Several即可