Apache HTTP 服务器映射到 tomcat 错误

Apache HTTP 服务器映射到 tomcat 错误

当我让 Apache 尝试映射到 tomcat 时,我有以下 worker.properties 文件:

workers.java_home="C:/Program Files/Java/jdk1.6.0_13"
workers.list=ajp13
workers.ajp13.port=8509
workers.ajp13.host=localhost
workers.ajp13.type=ajp13

但是,当它运行时,apache 也会将 localhost:8009 添加为工作程序(请参阅下面的日志条目) - 然后当我尝试连接到映射的 tomcat 实例时,它就死机了。我怎样才能阻止它添加 localhost:8009(它从哪里获取它?)

在 mod_jk.log 文件中我得到:

...

> [Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (491): Adding property 'workers.java_home' with value '"C:/Program Files/Java/jdk1.6.0_13"' to map.
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (491): Adding property 'workers.list' with value 'ajp13' to map.
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (491): Adding property 'workers.ajp13.port' with value '8509' to map.
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (491): Adding property 'workers.ajp13.host' with value 'localhost' to map.
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (491): Adding property 'workers.ajp13.type' with value 'ajp13' to map.
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (589): Dump of map: 'ServerRoot' -> 'C:/T2/Software/Apache'
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (589): Dump of map: 'workers.java_home' -> '"C:/Program Files/Java/jdk1.6.0_13"'
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (589): Dump of map: 'workers.list' -> 'ajp13'
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (589): Dump of map: 'workers.ajp13.port' -> '8509'
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (589): Dump of map: 'workers.ajp13.host' -> 'localhost'
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_map.c (589): Dump of map: 'workers.ajp13.type' -> 'ajp13'
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_worker.c (242): creating worker ajp13
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_worker.c (146): about to create instance ajp13 of ajp13
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_worker.c (159): about to validate and init ajp13
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2512): worker ajp13 contact is 'localhost:8009'
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2699): setting endpoint options:
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2702): keepalive:              0
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2706): socket timeout:         0
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2710): socket connect timeout: 0
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2714): buffer size:            0
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2718): pool timeout:           0
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2722): ping timeout:           10000
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2726): connect timeout:        0
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2730): reply timeout:          0
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2734): prepost timeout:        0
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2738): recovery options:       0
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2742): retries:                2
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2746): max packet size:        8192
[Mon Jun 08 09:00:39 2009] [5696:4596] [debug] jk_ajp_common.c (2750): retry interval:         100

我怎样才能阻止它尝试连接到 localhost:8009?谢谢。

答案1

我认为您在配置文件中使用了 Worker,而您应该在应该使用 Worker 的地方使用 Worker:

worker.java_home="C:/Program Files/Java/jdk1.6.0_13"
工人名单=ajp13
worker.ajp13.端口=8509
worker.ajp13.host=本地主机
worker.ajp13.类型=ajp13

注意:java_home工人。其他一切都是工人。

因此,它在 localhost:8009 上使用名为 AJP 的默认 AJP 连接器。

相关内容