[Fri Nov 20 14:41:30.398 2015] [3585:140444391393248] [info] ajp_service::jk_ajp_common.c (2673): (tomcat1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Fri Nov 20 14:41:30.398 2015] [3585:140444391393248] [error] ajp_service::jk_ajp_common.c (2693): (tomcat1) connecting to tomcat failed.
[Fri Nov 20 14:41:30.398 2015] [3585:140444391393248] [info] service::jk_lb_worker.c (1519): service failed, worker tomcat1 is in error state
[Fri Nov 20 14:41:30.398 2015] [3585:140444391393248] [info] jk_open_socket::jk_connect.c (758): connect to 220.181.188.182:9090 failed (errno=13)
[Fri Nov 20 14:41:30.398 2015] [3585:140444391393248] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (220.181.188.182:9090) (errno=13)
[Fri Nov 20 14:41:30.398 2015] [3585:140444391393248] [error] ajp_send_request::jk_ajp_common.c (1663): (tomcat2) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=13)
[Fri Nov 20 14:41:30.398 2015] [3585:140444391393248] [info] ajp_service::jk_ajp_common.c (2673): (tomcat2) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Fri Nov 20 14:41:30.498 2015] [3585:140444391393248] [info] jk_open_socket::jk_connect.c (758): connect to 220.181.188.182:9090 failed (errno=13)
[Fri Nov 20 14:41:30.498 2015] [3585:140444391393248] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (220.181.188.182:9090) (errno=13)
[Fri Nov 20 14:41:30.498 2015] [3585:140444391393248] [error] ajp_send_request::jk_ajp_common.c (1663): (tomcat2) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=13)
[Fri Nov 20 14:41:30.498 2015] [3585:140444391393248] [info] ajp_service::jk_ajp_common.c (2673): (tomcat2) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Fri Nov 20 14:41:30.498 2015] [3585:140444391393248] [error] ajp_service::jk_ajp_common.c (2693): (tomcat2) connecting to tomcat failed.
[Fri Nov 20 14:41:30.498 2015] [3585:140444391393248] [info] service::jk_lb_worker.c (1519): service failed, worker tomcat2 is in error state
[Fri Nov 20 14:41:30.599 2015] [3585:140444391393248] [info] service::jk_lb_worker.c (1571): Forcing recovery once for 2 workers
[Fri Nov 20 14:41:30.599 2015] [3585:140444391393248] [info] jk_open_socket::jk_connect.c (758): connect to 127.0.0.1:9090 failed (errno=13)
[Fri Nov 20 14:41:30.599 2015] [3585:140444391393248] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (127.0.0.1:9090) (errno=13)
[Fri Nov 20 14:41:30.599 2015] [3585:140444391393248] [error] ajp_send_request::jk_ajp_common.c (1663): (tomcat1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=13)
[Fri Nov 20 14:41:30.599 2015] [3585:140444391393248] [info] ajp_service::jk_ajp_common.c (2673): (tomcat1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Fri Nov 20 14:41:30.699 2015] [3585:140444391393248] [info] jk_open_socket::jk_connect.c (758):
mod_jk不能连接tomcat端口是通的telnet9090可以连接单独访问tomcat没问题,通过apache访问日志显示无法连接tomcatworker.list=controller,tomcat1,tomcat2
#========tomcat1========
worker.tomcat1.port=9090
worker.tomcat1.host=127.0.0.1
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1
worker.tomcat1.socket_timeout=300
#========tomcat2========
worker.tomcat2.port=9090
worker.tomcat2.host=220.181.188.182
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=1
worker.tomcat2.socket_timeout=300
#========controller========
worker.controller.type=lb
worker.controller.balance_workers=tomcat1,tomcat2
worker.controller.sticky_session=1
#loadmod_jkModule
LoadModulejk_modulemodules/mod_jk.so
#arrangeworkers.propertiespath
JkWorkersFileconf.d/workers.properties
JkLogFilelogs/mod_jk.log
JkShmFile/var/run/mod_jk/jk-runtime-status
#JkShmFile logs/mod_jk.shm
JkLogLevelinfo
JkMount/controller
JkMount/.jspcontroller
JkMount/.actioncontroller
JkMount/.docontroller
<aclass='referer'target='_blank'>@红薯<aclass='referer'target='_blank'>@红薯求救你解决了吗?我遇到这个问题了
<atarget='_blank'>@周鹏飞段晓曼我试一下吧回复<aclass='referer'target='_blank'>@周鹏飞段晓曼:回复<aclass='referer'target='_blank'>@一个人的夜:按照上面的教程最后成功了,时间长忘了回复<aclass='referer'target='_blank'>@一个人的夜:http://www.cnblogs.com/God-froest/p/apache_tomcat.html注意ajp端口<atarget='_blank'>@周鹏飞段晓曼那你怎么办的,最后?回复<aclass='referer'target='_blank'>@周鹏飞段晓曼:没有
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。