Created
February 27, 2014 05:12
-
-
Save ndzj081221130/9244770 to your computer and use it in GitHub Desktop.
2014_2_21配置apache、mod_jk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > Written with [StackEdit](https://stackedit.io/). | |
| [参考日志1][1] :22号早上,看了这篇日志,也没做什么,就可以了? | |
| 不对,改了一样,在/ect/apache2/mods-available/jk.conf中 | |
| mount app的时候,将**JkMount /* loadbalancer** | |
| [参考日志2][2] 这是主要参考日志,但是不知道为什么一直不行? | |
| 重启apache:sudo apachectl -k restart | |
| 重启tomcat7: sudo /etc/init.d/tomcat7 restart | |
| -------测试完毕,关闭tomcat7 | |
| sudo /etc/init.d/tomcat7 stop | |
| 下面接着尝试之前失败的apache+mod_jk+jboss | |
| 如果要在原来tomcat7成功的基础上,再次配置的话: | |
| /etc/apache2/mods-available/jk.conf应该不用改了。 | |
| 该文件中动态修改的部分是: | |
| JkWorkersFile /etc/apache2/workers.properties | |
| JkMountFile /ect/apache2/uriworkermap.properties这个刚刚好像没起作用? | |
| JkMount /* loadbalancer | |
| 那么,只需要,将workers.properties改掉就可以了? | |
| 重启apache,重启jboss | |
| 还是不行?why?Internal Server Error | |
| 查看日志/var/log/apache2/mod_jk.log: | |
| jk_handler::mod_jk.c: could not find a worker for worker name=**node2** | |
| 该错误是因为配置文件少写了一行? | |
| **worker.status.type=status** | |
| jk_uri_worker_ext:could not find worker with name '**loadbalance**' in uri map post processing | |
| 重写了一遍worker-jboss.properties | |
| 报错uri_worker_map_ext:could not find worker with name '**jk-manager**' in uri map post processing | |
| 在jk.conf注释掉jk-manager的标签后,报错:jk-status,node2,worker1,loadbalance | |
| uri_worker_map_ext:could not find worker with name '**jk-status**' in uri map post processing | |
| 将jk.conf改为 | |
| <Location /jkstatus/> | |
| JkMount status Order deny,allow Deny from all | |
| Allow from 127.0.0.1 | |
| </Location> | |
| 后,报错**node2**,worker1,loadbalancer | |
| **后来发现sites-available/default中,绑定了一些url,把这里改对了就可以了!!!** | |
| [1]: http://blog.rajeevsharma.in/2010/02/configure-modjk-with-apache-22-in.html | |
| [2]: http://thetechnocratnotebook.blogspot.com/2012/05/installing-tomcat-7-and-apache2-with.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment