Several ports (8005, 8080, 8009) 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運行web時出現上述報錯,這是由於你已經在外面通過starup.bat打開了tomcat,而在eclipse中運行時會再一次通過server打開Tomcat,這就造成了上面端口被占用的發中生,解決方法就是找到Tomcat的文件夾下bin文件夾然后雙擊shutdown.bat關閉Tomcat后再在eclipse中運行即可。
cmd 輸入 netstat -ano 展示端口號