+
 新版

Apache与tomcat的连接问题

icook 发布于 2013/04/02 12:53
阅读 639
收藏 0

运行环境:ubuntu 12.04

软件:Apache tomcat

我想将Apache2与tomcat连接起来,于是下载了下载了连接模块mod_jk的源码

编译完已将相关文件放置到了该放的位置

worker.properties文件是这么写的

# Define 3 workers, 2 real workers using ajp12, ajp13, the last one being a loadbalancing worker 
  worker.list=worker1
  # Set properties for worker2 (ajp13)
  worker.worker1.type=ajp13
  worker.worker1.host=localhost
  worker.worker1.port=8009
  worker.worker1.lbfactor=1
  worker.worker1.connection_pool_timeout=600
  worker.worker1.socket_keepalive=1
  worker.worker1.socket_timeout=60
mod_jk.conf文件:

# Load mod_jk module
    LoadModule    jk_module  libexec/mod_jk.so
    # Declare the module for <IfModule directive> (remove this line on Apache 2.x)
    AddModule     mod_jk.c
    # Where to find workers.properties
    JkWorkersFile /etc/httpd/conf/workers.properties
    # Where to put jk shared memory
    JkShmFile     /var/log/httpd/mod_jk.shm
    # Where to put jk logs
    JkLogFile     /var/log/httpd/mod_jk.log
    # Set the jk log level [debug/error/info]
    JkLogLevel    info
    # Select the timestamp log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # Send servlet for context /examples to worker named worker1
    #JkMount  /examples/servlet/* worker1
    # Send JSPs  for context /examples to worker named worker1
    JkMount /* worker1
在/etc/apache2/httpd.conf加入了以下代码

Include /tomcatPath/mod_jk.conf

结果连接失败...求支招

加载中
0
红薯
红薯
失败是有日志的,先看日志
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部