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