- 论坛徽章:
- 0
|
在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
请问出错的因为到底是什么呢? |
|