我一直在嘗試使用Eclipse Helios安裝Apache Tomcat 7來嘗試Web應用程序。 但我無法運行webcontents
。它在Eclipse中給出以下消息:在本地主機上啓動tomcat7有錯誤
Several ports (8090, 8009) required by Tomcat v7.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,但問題仍未解決。 我可以在瀏覽器中看到Apache Tomcat/7.0.27。
(如果你使用windows)嘗試查殺正在運行的tomcat,然後在eclipse中啓動它殺死它:TASKKILL/F/IM java.exe/T – Daniel 2012-04-16 12:26:12
@Daniel請告訴我命令。它有錯誤:TASKKILL/F/IM java.exe/T在cmd中。 – Mohsen 2012-04-16 12:32:06
@Mohsen我不知道你有沒有其他服務器旁邊的tomcat ...我的命令應該殺死正在運行的tomcat(在我的Windows tomcat進程名爲java.exe) – Daniel 2012-04-16 12:48:02