博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Apache+jboss群集部署
阅读量:7167 次
发布时间:2019-06-29

本文共 2437 字,大约阅读时间需要 8 分钟。

Jboss default方式上的Cluster配置[二] - 操作系统

http://www.myexception.cn/operating-system/862858.html

Jboss default方式下的Cluster配置[二]

Install Apache
Install

Unzipgzip -d httpd-2.2.9.tar.gztar xvf httpd-2.2.9.tarConfigcd httpd-2.2.9./configure --prefix=/opt/apache2ComplilemakeInstall.make install

Configuraion
vi /opt/apache2/conf/httpd.conf
将User daemon和Group daemon改为User apache和Group apache

Listen 192.168.150.75:80ServerName 192.168.150.75:80

Add user and group for apache:

groupadd apacheuseradd apache –g apache

Check

./apachectl configtest

Install Mod_JK
Install
Rename mod_jk-1.2.26-httpd-2.2.6.so to mod_jk.so;

#mv mod_jk-1.2.26-httpd-2.2.6.so mod_jk.so

Copy to the folder /opt/apache2/modules.

#cp /home/tools/mod_jk.so

Configuration
Add the below line in the bottom of /opt/apache2/conf/httpd.conf:

Include conf/mod_jk.conf

Copy the files to the folder:

/opt/apache2/conf

mod_jk.conf

# Load mod_jk module# Specify the filename of the mod_jk libloadModule jk_module modules/mod_jk.so# Where to find workers.propertiesJkWorkersFile conf/workers.properties# Where to put jk logsJkLogFile logs/mod_jk.log# Set the jk log level [debug/error/info]JkLogLevel info# Select the log formatJkLogStampFormat "[%a %b %d %H:%M:%S %Y]"# JkOptions indicates to send SSK KEY SIZEJkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories# JkRequestLogFormatJkRequestLogFormat "%w %V %T"JkMountFile conf/uriworkermap.properties

workers.properties

#Define list of workers that will be used# for mapping requestsworker.list=loadbalancer,status# Define Node1# modify the host as your host IP or DNS name.worker.node1.port=8009worker.node1.host=192.168.150.75worker.node1.type=ajp13worker.node1.lbfactor=1# Define prefered failover node for node1worker.node1.redirect=node2# Define Node2# modify the host as your host IP or DNS name.worker.node2.port=8009worker.node2.host=192.168.150.76worker.node2.type=ajp13worker.node2.lbfactor=2worker.node2.redirect=node1# Load-balancing behaviourworker.loadbalancer.type=lbworker.loadbalancer.balance_workers=node1,node2worker.loadbalancer.sticky_session=1# Status worker for managing load balancerworker.status.type=status

uriworkermap.properties

/application/*=loadbalancer/jkstatus=status#/*.jsp=loadbalancer#/*.do=loadbalancer!/*.gif=loadbalancer!/*.msi=loadbalancer!/*.exe=loadbalancer!/*.jpg=loadbalancer!/*.png=loadbalancer!/*.css=loadbalancer!/js/*.js=loadbalancer#!/*.htm=loadbalancer#!/*.html=loadbalancer

 

转载地址:http://kqvwm.baihongyu.com/

你可能感兴趣的文章
机器学习
查看>>
.NET:异常处理的两条“黄金定律”,求批!
查看>>
二叉树的深度
查看>>
android:screenOrientation的说明
查看>>
ubuntu安装日志
查看>>
XMLHTTP使用具体解释
查看>>
FindWindowEx用法
查看>>
Parallel的陷阱
查看>>
asp.net C# int 类型在32/64位环境下取值范围无变化
查看>>
二手房交易流程、交易税费 搜房网
查看>>
安装veloeclipse插件报错解决方案
查看>>
QQ公众号?是的,你没看错!
查看>>
Android系统进程间通信Binder机制在应用程序框架层的Java接口源代码分析
查看>>
Oracle索引(B*tree和Bitmap)学习
查看>>
Oracle Erp常用网站
查看>>
Git 基本原理与经常使用命令
查看>>
安卓开发_浅谈Android动画(一)
查看>>
SharePoint 2013 开启访问请求 链接丢失
查看>>
WebView入门
查看>>
textarea字数限制方法一例
查看>>