myeclipse2015不能啟動tomcat,提示:
Several ports (8005, 8080, 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).
今天我們來說說Myeclipse使用本地安裝的tomcat開發過程中遇到的問題
上面這個問題都知道是端口被占用導致的問題,在網上也看了許多,就是沒有看到一個好的解決,都不管用,今天我們來說說是怎么回事。
首先我們在Myeclipse中配置一個tomcat服務 使用時自己安裝的不是Myeclipse自帶的。
配置自己的tomcat
進行去后進行相應的配置,配置網上很多,不會的可以在網上查找。配置后我們的項目有了一個自己的server,這個server是全新的。配置信息與我們本地安裝的tomcat配置是一樣的。使用這個來運行項目就會報該錯誤。
解決:
進入本地tomcat的安裝目錄找到 tomcat安裝目錄/conf/server.xml
編輯,把8005, 8080, 8009全部改為8885, 8888, 8889,重新運行項目就ok了