【发布时间】:2013-05-12 09:27:26
【问题描述】:
我在我的项目中使用 mod_jk 将 apache 连接到 tomcat 服务器。 我正在使用 intelliJ IDEA 作为我的开发 IDE。
我的问题是,每次我在 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 每次都改变它呢?我该如何解决?
【问题讨论】:
标签: jsp servlets intellij-idea tomcat7 ajp