【正文】
to find JkWorkersFile conf/ Where to put jk logs JkLogFile logs/ 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 Send servlet for context /examples to worker named ajp13 JkMount /servlet/* loadbalancer Send JSPs for context /examples to worker named ajp13 JkMount /MEDICARE/*.* loadbalancer 在 conf 目錄 下建立 文件,文件內(nèi)容如下: list the workers by name =tomcat1, tomcat2, loadbalancer First tomcat server =8019 =localhost(實際部署時請修改為第一臺機器的 IP) =ajp13 Specify the size of the open connection cache. Specifies the load balance factor when used with a load balancing worker. Note: lbfactor must be 0 Low lbfactor means less work done by the worker. =100 Second tomcat server =8