# Akadia AG, Arvenweg 4, CH-3604
Thun
workers.properties
# --------------------------------------------------------------------------
# File: workers.properties
#
# Autor: Martin Zahn, 06.08.2002
#
# Purpose: Configuration file for Apache/Tomcat
#
# Location: $TOMCAT_HOME/conf
#
# Certified: RedHat Linux 7.2 / Apache 1.3.22 / Tomcat 4.1.10 /
JDK-1.4
#
# Note: This file should be appended or included
into your mod_jk.conf
# --------------------------------------------------------------------------
#
# This file provides jk derived plugins with the needed information to
# connect to the different tomcat workers. Note that the distributed
# version of this file requires modification before it is usable by a
# plugin.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them in your own configuration!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to do is un-comment and modify the first three
# properties, i.e. workers.tomcat_home, workers.java_home and ps.
# Most of the configuration is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and ps
# you should have 3 workers configured:
#
# - An ajp12 worker that connects to localhost:8007
# - An ajp13 worker that connects to localhost:8009
# - A jni inprocess worker.
# - A load balancer worker
#
# However by default the plugins will only use the ajp12 worker. To have
# the plugins use other workers you should modify the worker.list property.
# # OPTIONS ( very important for jni mode )
#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
# workers.tomcat_home=/usr/local/tomcat #
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
# workers.java_home=/usr/local/java #
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
# ps=/ #
#------ ADVANCED MODE ------------------------------------------------
#---------------------------------------------------------------------
#
#------ DEFAULT worket list ------------------------------------------
#---------------------------------------------------------------------
#
# The workers that your plugins should create and work with
#
worker.list=ajp12, ajp13 #
#------ DEFAULT ajp12 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#
#
# Defining a worker named ajp12 and of type ajp12
# Note that the name and the type do not have to match.
#
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12 #
# 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.
worker.ajp12.lbfactor=1 #
#------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13 #
# 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.
worker.ajp13.lbfactor=1 #
# Specify the size of the open connection cache.
#worker.ajp13.cachesize
#
#------ DEFAULT LOAD BALANCER WORKER DEFINITION ----------------------
#---------------------------------------------------------------------
# # The loadbalancer (type lb) workers perform wighted
round-robin
# load balancing with sticky sessions.
# Note:
# ----> If a worker dies, the load balancer will check its state
# once in a while. Until then all work is
redirected to peer
# workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13 #
#------ DEFAULT JNI WORKER DEFINITION---------------------------------
#---------------------------------------------------------------------
# # Defining a worker named inprocess and of type jni
# Note that the name and the type do not have to match.
#
worker.inprocess.type=jni #
#------ CLASSPATH DEFINITION -----------------------------------------
#---------------------------------------------------------------------
# # Additional class path components.
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar #
# Setting the command line for tomcat.
# Note: The cmd_line string may not contain spaces.
#
worker.inprocess.cmd_line=start # # Not needed, but can be customized.
# worker.inprocess.cmd_line=-config
# worker.inprocess.cmd_line=$(workers.tomcat_home)$(ps)conf$(ps)server.xml
# worker.inprocess.cmd_line=-home
# worker.inprocess.cmd_line=$(workers.tomcat_home)
#
# The JVM that we are about to use
#
# This is for Java2
#
# Windows
#
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
# IBM JDK1.3
#
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
# Unix - Sun VM or blackdown
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)classic$(ps)libjvm.so #
# And this is for jdk1.1.X
#
# worker.inprocess.jvm_lib=$(workers.java_home)$(ps)bin$(ps)javai.dll
#
# Setting the place for the stdout and stderr of tomcat
#
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr #
# Setting the tomcat.home Java property
#
# worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
#
# Java system properties
#
# worker.inprocess.sysprops=java.compiler=NONE
# worker.inprocess.sysprops=myprop=mypropvalue
#
# Additional path components.
#
# worker.inprocess.ld_path=d:$(ps)SQLLIB$(ps)bin
|
from http://www.akadia.com/download/soug/tomcat/html/workers_properties.html
分享到:
相关推荐
apache+tomcat集群配置 tomcat 中workers.properties配置说明
4. **配置工作管理器**:在 `workers.properties` 文件中设置工作管理器的配置信息。 5. **启动 Apache**:重启 Apache 服务以使更改生效。 #### 实例:Windows 下 Apache 2.2.22 与 mod_jk 整合 假设我们正在使用...
- `workers.properties`:定义与 Tomcat 服务器的连接信息。 - `uriworkermap.properties`:规定哪些 URL 由 Tomcat 来处理,通过 URI 映射实现动态分发。 示例配置片段: ```plaintext # httpd.conf LoadModule...
在这个混合架构中,`workers.properties`和`uriworkermap.properties`文件扮演了至关重要的角色,它们是Apache的mod_jk模块的一部分,用于配置IIS与Tomcat之间的通信。这两份配置文件放置在Tomcat的`conf`目录下,...
JkWorkersFile "D:\apache-tomcat-6.0.18\conf\workers.properties" JkMount /examples/* ajp13 #此处是servlet和jsp的挂载点 3,在tomcat6的目录下的conf目录里面建立workers.properties 4,检查tomcat的server.xml...
- 下载地址:[http://tomcat.apache.org/](http://tomcat.apache.org/) - 下载链接:[点击下载Tomcat 5.5.25 zip版](http://tomcat.apache.org/download-55.cgi) 3. **mod_jk**:这是一个用于连接Apache和Tomcat...
Apache的下载地址是<http://archive.apache.org/dist/httpd/binaries/win32/>,而Tomcat的下载地址是<http://tomcat.apache.org/download-55.cgi>。确保选择适合你操作系统的版本,对于Windows平台,通常会下载...
Tomcat可以在http://tomcat.apache.org/download-55.cgi下载,选择Core的zip包。此外,还需要下载与Apache版本相匹配的Tomcat Connector,例如mod_jk-1.2.26-httpd-2.2.3.so,它可以在...
JkWorkersFile "C:/Program Files/Apache2.2/conf/workers.properties" JkMount / ajp13 ``` 这里`JkWorkersFile`指定了workers.properties文件的位置,`JkMount`指令将URL映射到AJP协议。 4. 最后,重启Apache...
总的来说,`jk2.properties`和`workers2.properties`是Apache与Tomcat集成的关键配置文件,它们确保了HTTP请求能正确地转发到Tomcat实例,同时支持负载均衡和故障转移,使得整个Web服务架构更加健壮和灵活。...
5. 将编译好的mod_jk.so复制到Apache的modules目录:`# cp ./apache-2.0/mod_jk.so /usr/local/apache2/modules/` #### 六、配置Apache与Tomcat ##### 6.1 配置mod_jk 在`/usr/local/apache2/conf/`目录下创建两个...
JkWorkersFile conf/workers.properties # 指定日志存放位置 JkLogFile logs/mod_jk_error.log # 日志级别 JkLogLevel warn # 让 Apache 支持对 servlet 传送 JkMount /servlet/* worker1 # 让 ...
cp ./apache-2.0/mod_jk.so /usr/local/apache/modules/ ``` 4. **编辑配置文件**:需要修改 `/usr/local/apache/conf/` 目录下的三个文件 `mod_jk.conf`, `workers.properties` 以及 `httpd.conf`。 #### 配置 ...
- 添加或修改workers.properties文件,该文件通常位于Tomcat的conf/Catalina/localhost目录下。在这个文件中定义了JK的工作者(worker),即Tomcat实例。 4. **启动服务并验证**: - 分别启动Apache和Tomcat服务。...
- 配置编译选项 `./configure --prefix=/usr/local/apache --enable-module=so`。 3. **编译安装:** - `make` - `make install` 4. **配置 Apache:** - 修改监听端口:编辑 `/usr/local/apache/conf/httpd....
- 在 `workers.properties` 文件中配置Tomcat的路径和其他相关信息: ```plaintext workers.tomcat_home=C:/Tomcat7.0 # Tomcat7.0安装路径 workers.java_home=C:/Program Files/Java/jdk1.7.0_01 # JDK安装...
从Apache Tomcat官网(http://tomcat.apache.org/download-60.cgi)下载适用于Windows的Tomcat 6,可以选择Windows Service Installer版本。 5. **安装Tomcat 6**: 双击安装文件,按照提示完成安装。默认情况下...