0
我正在使用mod_jk將apache連接到我的項目中的tomcat服務器。 我正在使用intelliJ IDEA作爲我的開發IDE。Tomcat ajp端口每次更改與intelliJ
與我的問題是,每當我在intelliJ中重新啓動我的tomcat時,它會在不同的端口上啓動ajp偵聽器。我在intelliJ控制檯中看到下面的行。
May 17, 2013 2:19:51 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
May 17, 2013 2:19:51 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-1377"]
當我下次重新啓動ajp-bio-xxxx顯示不同的端口。 爲什麼會發生這種情況?我想將它設置爲固定端口。
在安裝了tomcat的地方,我檢查了server.xml文件,它顯示8009爲ajp端口。 那麼爲什麼intelliJ每次都改變它呢?我該如何解決它?
+1。接受你的答案。 – Michael