开发者社区> 问答> 正文

apache tomcat mod_jk启动报错?报错

[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): 

展开
收起
爱吃鱼的程序员 2020-06-10 10:54:03 929 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    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'>@周鹏飞段晓曼:没有

    2020-06-10 10:54:18
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载

相关镜像