1. install Apache Httpd server
# intall path, ie. /apache2.2
gunzip -d httpd*.tar.gz
tar -xvf httpd*.tar
cd httpd*
./configure --prefix=/ apache2.2 --enable-ssl
make
make install
2. download mod_jk load balancing module for Apache Httpd Server
http://tomcat.apache.org/download-connectors.cgi?Preferred=http://www.apache.org/dist/
3. compile & install mod_jk
gunzip *jk*.tar.gz
tar -xvf *jk(.tar
cd *jk*/native
./configure --with-apxs=/apache2.2/bin/apxs
cp apache-2.0/mod_jk.so /apache2.2/modules/
4.edit Apache Httpd conf/httpd.conf
# add the following line
include "conf/mod_jk.conf"
5. create mod_jk.conf within conf/ directory of Apache Httpd Server
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# JkOptions indicates to send SSK KEY SIZE
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"
# Add shared memory.
# This directive is present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
JkShmFile logs/jk.shm
# Add jkstatus for managing runtime data
<Location /jkstatus/>
JkMount status
Order deny,allow
Allow from all
</Location>
#JkMount /*.html loadbalancer
JkMount /*.seam loadbalancer
6. create workers.properties within conf/ directory of Apache Httpd Server
#Definelistofworkersthatwillbeused
#formappingrequests
worker.list=loadbalancer,status
worker.maintain=60
#worker.node0-template This feature has been added in jk 1.2.19
worker.node_template.port=8009
worker.node_template.type=ajp13
worker.node_template.lbfactor=1
worker.node_template.socket_timeout=600
worker.node_template.lbfactor=1
#worker.node1
worker.node1.reference=worker.node_template
worker.node1.host=10.18.2.161
#worker.node2
worker.node2.reference=worker.node_template
worker.node2.host=10.18.2.162
#worker.loadbalancer
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
worker.loadbalancer.sticky_session=1
#worker.status
#Status worker for managing load balancer
worker.status.type=status
7 Edit Tomcat/JBoss server.xml
for tomcat: config/server.xml or
for jboss : server/<server name>/deploy/jbossweb.sar
add jvmRoute attribute to Engine element, eg:
<Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">
8 Done!
分享到:
相关推荐
NAV350 报文解析 Telegram_listing_Telegrams_for_Configuring_and_Operating_the_NAV350_
Practical Mod Perl <br> Copyright Preface What You Need to Know Who This Book Is For How This Book Is Organized Reference Sections Filesystem Conventions Apache ...
Configuring_Multichassis_Link_Aggregation_on_a_QFX_Series
##### 2.2 安装 安装章节则提供了关于如何将T400模块正确安装在控制系统中的指导,确保硬件的正确连接是后续配置工作的基础。 #### 三、SIMATIC Manager 本章节介绍了如何使用SIMATIC Manager这一工具来管理项目的...
#### 1.2 Cypress EZ-USB FX3简介 Cypress EZ-USB FX3是一款高性能的USB 3.0控制器芯片,支持SuperSpeed USB 5Gbps传输速率,并且具有强大的可编程性。FX3内置了8051微控制器内核,可以通过编程实现复杂的USB协议栈...
1.2 语音技术概略 1 1.3 基本的长途旁路设计 5 1.3.1 通信线路替代 5 1.3.2 投资回报问题 11 1.4 网络PBX 14 1.5 先进性和集成性 19 1.5.1 TAPI集成 20 1.5.2 网上通话 20 1.5.3 传递、转发和协商能力 21 1.5.4 传真...
This_is_a_small_Micropython_module_for_configuring_ADS1299-x-MicroPython-Module
不管是对于初学者,还是高手,看看此书,对于SAP的财务模块定有帮助。值
总结一下,`Accessing Archives Data and Configuring the Archive`涉及了以下几个关键知识点: 1. **WLDF(WebLogic Dynamic Federation)**:Oracle WebLogic Server的内置监控框架,提供动态和可扩展的监控解决...
在压缩包文件名称列表中,“presentation-Configuring_a_laptop_with_Ansible-master”可能包含了整个演讲的源文件,包括幻灯片、脚本、示例代码等。master通常表示这是主分支或完整版的内容,意味着你将能够找到...
Application Centric Infrastructure ACI LiveLessons
Application Centric Infrastructure ACI LiveLessons
Application Centric Infrastructure ACI LiveLessons
Application Centric Infrastructure ACI LiveLessons
Application Centric Infrastructure ACI LiveLessons
The book focuses on key technologies such as Servlets 2.3, JSP 1.2, EJB 2.0, and client-side scripting with JavaScript. It provides practical insights through real-world projects like e-commerce ...
标题中的"Configuring_SMPP.rar"表明这是一个关于配置SMPP(Short Message Peer-to-Peer)协议的资源文件,而"site:www.pudn.com"则可能是该文件的来源网站,通常这类网站会分享各种技术文档和教程。描述中提到"这是...
### XenCenter 4.1.0 安装与配置指南 #### 一、初始化控制台 在完成 XenServer 4.1.0 和 XenCenter 4.1.0 的安装后,首次启动 XenCenter 时,需进行初始化配置。这包括添加 XenServer 服务器并配置相关设置。...