1. 程式人生 > >eclipse執行tomcat埠號佔用

eclipse執行tomcat埠號佔用

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中執行即可。