Several ports (8058, 8059, 8060) required by Tomcat v8.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异常关闭后,我们再次打开eclipse启动工程时经常会看到类似端口被占用的现象,刚开始有同事建议我关机重启,或者更改端口号,后来经过小编查找发现,这是由于你已经在外面通过starup.bat打开了tomcat,而在eclipse中运行时会再一次通过server打开Tomcat,这就造成了上面端口被占用的发生
解决方法:
找到Tomcat的文件夹下bin文件夹然后双击shutdown.bat关闭Tomcat后再在启动eclipse运行即可。