免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: greendays
打印 上一主题 下一主题

[Web] Apache2.2+Tomcat6.0--combined 最新详细版整合文档--特爱共享 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-03-03 09:25 |只看该作者
在httpd.conf加载LoadModule jk_module modules/mod_jk.so 保存后./apachectl -t得到syntax OK
然后在httpd.conf再加载一句Include /usr/local/apache2/conf/mod_jk.conf保存后./apachectl -t得到Invalid command 'JkWorkerFile', perhaps misspelled or defined by a module not included in the server configuration
mod_jk.conf的内容是:
JkWorkerFile /usr/local/apache2/conf/workers.properties
#where to put jk logs
JkLogFile /usr/local/apache2/logs/mod_jk.log
#set the jk log level [debug/error/info]
JkLogLevel info
#select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
#jkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
#JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"

JkMount /servlet/* worker1
JkMount /*.jsp worker1
workers.properties的内容是:
#Define a worker named worker1 and of type ajp13
worker.list=worker1

#Set properties for worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
请问出错的因为到底是什么呢?

论坛徽章:
0
12 [报告]
发表于 2009-03-11 12:21 |只看该作者
我的环境搭建好了,启动都没有任何报错,但是在打开测试网页的时候,就直接把测试页的内容输出了,没有被java解释,找了好半天还是没有找到那个环境出错.

论坛徽章:
0
13 [报告]
发表于 2009-03-11 15:51 |只看该作者
我测试过mod_jk好象没有mod_proxy稳定..

论坛徽章:
0
14 [报告]
发表于 2009-03-13 15:56 |只看该作者

回复 #11 city_85 的帖子

请查看apache是否加载了mod_jk模块

论坛徽章:
0
15 [报告]
发表于 2009-03-13 17:09 |只看该作者

回复 #14 dreamer200 的帖子

有加载。但是就是找不到原因

论坛徽章:
0
16 [报告]
发表于 2010-06-02 12:43 |只看该作者
不错! 学习了!!!!!!!!!

论坛徽章:
0
17 [报告]
发表于 2010-06-07 11:31 |只看该作者
JK连接 目前用的较多

论坛徽章:
0
18 [报告]
发表于 2010-06-09 15:25 |只看该作者
回复 13# ipaddr


   有测试报告吗????其实我的网站也是用proxy? 但不知那个更好?????????

论坛徽章:
0
19 [报告]
发表于 2010-12-08 13:57 |只看该作者
[Wed Dec 08 13:48:54 2010][27879:47471563500240] [warn] jk_map_validate_property::jk_map.c (411): The attribute 'worker.worker1.cachesize' is deprecated - please check the documentation for the correct replacement.

我在apache 里面设了虚拟机,就有这个报错提示?? 

论坛徽章:
4
CU十二周年纪念徽章
日期:2013-10-24 15:41:34狮子座
日期:2014-02-10 17:22:57技术图书徽章
日期:2014-02-18 08:44:12技术图书徽章
日期:2014-04-29 14:15:42
20 [报告]
发表于 2010-12-09 12:21 |只看该作者
和我环境相似.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP