这篇是上一篇的补充材料。
注:为便于在这里显示,我把文件中的“[”和“]”都替换为“{”和“}”了。
{logger}
level=debug
{config:}
#file=${serverroot}/conf/workers2.properties
#这里就是这个配置文件的路径
file=d:/apache/apache2/conf/workers2.properties
debug=0
debugenv=0
#在这里定义环境变量,即便外部环境变量没有定义也无关系
java_home=d:j2se
tomcat_home=d: omcat
{urimap:}
info=maps the requests. options: debug
debug=0
# alternate file logger
#{logger.file:0}
#level=debug
#file=${serverroot}/logs/jk2.log
{shm:}
info=scoreboard. required for reconfiguration and status with multiprocess servers
#注:这里的${serverroot}就是apache的安装路径
file=${serverroot}/logs/jk2.shm
size=1000000
debug=0
disabled=0
{workerenv:}
info=global server options
timing=1
debug=0
# default native logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0
{lb:lb}
info=default load balancer.
debug=0
#{lb:lb_1}
#info=a second load balancer.
#debug=0
{channel.socket:localhost:8009}
info=ajp13 forwarding over socket
debug=0
tomcatid=localhost:8009
#{channel.socket:localhost:8019}
#info=a second tomcat instance.
#debug=0
#tomcatid=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0
#{channel.un:/opt/33/work/jk2.socket}
#info=a second channel connecting to localhost:8019 via unix socket
#tomcatid=localhost:8019
#lb_factor=1
#debug=0
{channel.jni:jni}
info=the jni channel, used if tomcat is started inprocess
{status:}
info=status worker, displays runtime informations
{vm:}
info=parameters used to load a jvm in the server process
#注意:下面这一段是关键,主要的是classpath,将影响tomcatstarter类的查找
jvm=$(java_home)/jre/bin/server/jvm.dll
classpath=${tomcat_home}/bin/bootstrap.jar
classpath=${tomcat_home}/bin/commons-logging-api.jar
classpath=${tomcat_home}/bin/commons-daemon.jar
classpath=${tomcat_home}/server/lib/tomcat-jni.jar
classpath=${tomcat_home}/server/lib/commons-modeler.jar
classpath=${tomcat_home}/server/lib/tomcat-util.jar
classpath=${tomcat_home}/server/lib/commons-digester.jar
classpath=${tomcat_home}/server/lib/commons-beanutils.jar
classpath=${tomcat_home}/server/lib/catalina-ant.jar
classpath=${tomcat_home}/server/lib/catalina-optional.jar
classpath=${tomcat_home}/server/lib/commons-fileupload-1.0.jar
classpath=${tomcat_home}/server/lib/jakarta-regexp-1.3.jar
classpath=${tomcat_home}/server/lib/tomcat-jk.jar
classpath=${tomcat_home}/server/lib/tomcat-http11.jar
classpath=${tomcat_home}/server/lib/servlets-invoker.jar
classpath=${tomcat_home}/server/lib/servlets-common.jar
classpath=${tomcat_home}/server/lib/catalina.jar
classpath=${tomcat_home}/server/lib/jkshm.jar
classpath=${tomcat_home}/server/lib/jkconfig.jar
classpath=${tomcat_home}/server/lib/catalina-i18n-ja.jar
classpath=${tomcat_home}/server/lib/servlets-webdav.jar
classpath=${tomcat_home}/server/lib/tomcat-coyote.jar
classpath=${tomcat_home}/server/lib/tomcat-jk2.jar
classpath=${tomcat_home}/server/lib/servlets-default.jar