我正在使用Apache服务器在Tomcat 7中进行集群.它工作正常.但是我有以下问题:
1)我正在尝试监控mod_jk状态页面;但它给出了404错误.
[Tue Dec 17 13:16:51.019 2013] [2236:140599476504544] [error] init_jk::mod_jk.c (3348): Initializing shm:/etc/httpd/logs/mod_jk.shm.2236 errno=13. Load balancing workers will not function properly. [Tue Dec 17 13:16:51.019 2013] [2236:140599476504544] [info] init_jk::mod_jk.c (3365): mod_jk/1.2.37 initialized [Tue Dec 17 13:16:51.041 2013] [2237:140599476504544] [error] init_jk::mod_jk.c (3348): Initializing shm:/etc/httpd/logs/mod_jk.shm.2237 errno=13. Load balancing workers will not function properly. [Tue Dec 17 13:16:51.042 2013] [2237:140599476504544] [info] init_jk::mod_jk.c (3365): mod_jk/1.2.37 initialized
这是worker.properties文件
worker.list=tomcatnode1,tomcatnode2,loadbalancer,statusmanager worker.tomcatnode1.port=8009 worker.tomcatnode1.host=localhost worker.tomcatnode1.type=ajp13 worker.tomcatnode1.lbfactor=100 worker.tomcatnode2.port=8010 worker.tomcatnode2.host=localhost worker.tomcatnode2.type=ajp13 worker.tomcatnode2.lbfactor=100 #Load Balance Configuration worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=tomcatnode1,tomcatnode2 worker.loadbalancer.sticky_session=1 #worker.list=jkstatus worker.statusmanager.type=status
这是mod_jk.conf文件
LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkShmFile logs/mod_jk.shm JkMount /IntellixWebApi/* loadbalancer #JkMount /jkmanager/* jkstatus #JkMount /jkmanager jkstatus <Location /status/> JkMount statusmanager Order deny,allow # Deny from all Allow from 127.0.0.1 </Location>
如果我正在访问IntellixWebApi;它是可访问的.但是当我使用/ status时;它不起作用.
请建议.