mod_jk 不尝试连接

mod_jk 不尝试连接

我在 /var/log/httpd/mod_jk.log 中有以下字符串

[Fri Apr 05 20:48:04.709 2013] [11848:46912530825504] [info] ajp_service::jk_ajp_common.c (2543): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Fri Apr 05 20:48:04.808 2013] [11848:46912530825504] [error] jk_open_socket::jk_connect.c (448): socket() failed (errno=22)
[Fri Apr 05 20:48:04.808 2013] [11848:46912530825504] [info] ajp_connect_to_endpoint::jk_ajp_common.c (959): Failed opening socket to (127.0.0.1:9008) (errno=22)
[Fri Apr 05 20:48:04.808 2013] [11848:46912530825504] [error] ajp_send_request::jk_ajp_common.c (1578): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=22)
[Fri Apr 05 20:48:04.808 2013] [11848:46912530825504] [info] ajp_service::jk_ajp_common.c (2543): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Fri Apr 05 20:48:04.808 2013] [11848:46912530825504] [error] ajp_service::jk_ajp_common.c (2562): (ajp13) connecting to tomcat failed.
[Fri Apr 05 20:48:04.808 2013] [11848:46912530825504] [info] jk_handler::mod_jk.c (2627): Service error=-3 for worker=ajp13

tomcat 正在监听端口 9008,我尝试使用 ajpclient 和 telnet 进行连接(似乎可行),

我也检查过

tshark -i any and port 9008

它没有捕获任何东西(似乎 mod_jk 甚至没有尝试打开与 tomcat 的连接)。

所以这里有一个问题——我如何才能进一步调试 mod_jk 以及什么可能导致这种行为?

答案1

我通过重新编译 mod_jk.so 修复了这个问题(plesk_mod_jk 附带的 mod_jk.so 似乎与 XEN 不兼容)。

相关内容