tomcat apache JkShmFile

Apache won't start with mod_jk directive JkShmFile

apachectl2 returns with the following error:

Starting httpd2 (prefork) Syntax error on line 44 of /etc/apache2/conf.d/mod_jk.conf:
Invalid command 'JkShmFile', perhaps misspelled or defined by a module not included in the server configuration

Commenting that line, then gives me an error with this directive:

<Location /jkstatus/>
JkMount status <-----
Order deny,allow
Deny from all
Allow from 127.0.0.1


Error message:

Starting httpd2 (prefork) Syntax error on line 48 of /etc/apache2/conf.d/mod_jk.conf: JkMount not allowed here


I'm using OpenSuse 10.2 and Apache 2.

Thanks for any direction you can give.Re: Apache won't start with mod_jk directive JkShmFile Well, after 6 hours of testing and I posted this. 3 minutes later, someone sent me an email that resolved the issue.

If you experience, you have to upgrade to version 1.2.23 of mod_jk.

Jason

 

原来是用这个包编译生成mod_jk jakarta-tomcat-connectors-jk-1.2.6-src.tar.gz

找了好半天也百度不出来 最后在一哥们blog中看到点提示 换了个版本

可能是这个版本有点高不支持JkShmFile

后来改有了这个tomcat-connectors-1.2.31-src.tar.gz native下进行编译

 

编译生成mod_jk。
# tar -xzvf tomcat-connectors-1.2.31-src.tar.gz 
# cd tomcat-connectors-1.2.31-src/native   
# ./configure --with-apxs=/usr/local/apache2/bin/apxs  \
--with-java-home=/usr/local/java

# make   
# cp ./apache-2.0/mod_jk.so /usr/local/apache2/modules/

你可能感兴趣的:(apache,tomcat,百度,Blog)