欢迎来到天天文库
浏览记录
ID:37711455
大小:32.96 KB
页数:8页
时间:2019-05-29
《Jboss集群配置详细说明》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Jboss集群负载均衡器配置(红字体为要注意的地方)本例所使用的Apache+Jboss集群所使用的软件版本如下:jboss.4.0.5.GAjdk-1_5_0_12mod_jk-1.2.23Apache2.2.4jems-installer-1.2.0.GA先安装apache,然后配置mod_jk模块。安装apache下载apache代码包,上传到服务器。解开代码包tarxfvzhttpd-2.2.4.tar.gz编译./configure–prefix=/usr/local/apache2makecleanmakemakeinstall修改配置。提供服务的监听端口是8080,
2、请根据实际情况修改。vi/usr/local/apache2/conf/httpd.conf将Listen80改成Listen8080将Userdaemon和Groupdaemon改为Userapache和Groupapache删除ServerName前的#将该行改为ServerName127.0.0.1:8080添加用户和用户组groupaddapacheuseraddapache–gapacheapachemod_jk配置 下载mod_jk,将其改名为mod_jk.so,拷贝到/usr/local/apache2/modules下chmod+x/usr/local/apach
3、e2/modules/mod_jk.so在/usr/local/apache2/conf/httpd.conf的末尾增加:Includeconf/mod_jk.conf建立空文件/usr/local/apache2/conf/uriworkermap.propertiesvi/usr/local/apache2/conf/mod_jk.conf输入以下内容:_____________________________________________________________________#Loadmod_jkmodule#Specifythefilenameofthemod
4、_jklibLoadModulejk_modulemodules/mod_jk.so#Wheretofindworkers.propertiesJkWorkersFileconf/workers.properties#WheretoputjklogsJkLogFilelogs/mod_jk.log#Setthejkloglevel[debug/error/info]JkLogLevelinfo#SelectthelogformatJkLogStampFormat“[%a%b%d%H:%M:%S%Y]”#JkOptionsindicatestosendSSKKEYSIZEJkOpt
5、ions+ForwardKeySize+ForwardURICompat-ForwardDirectories#JkRequestLogFormatJkRequestLogFormat“%w%V%T”#MountyourapplicationsJkMount/*loadbalancer#Youcanuseexternalfileformountpoints.#Itwillbecheckedforupdateseach60seconds.#Theformatofthefileis:/url=worker#/examples/*=loadbalancerJkMountFileconf
6、/uriworkermap.properties#Addsharedmemory.#Thisdirectiveispresentwith1.2.10and#laterversionsofmod_jk,andisneededfor#forloadbalancingtoworkproperlyJkShmFilelogs/jk.shm#AddjkstatusformanagingruntimedataJkMountstatusOrderdeny,allowDenyfromallAllowfrom127.0.0.1_____
7、_______________________________________________________________________vi/usr/local/apache2/conf/workers.properties,增加以下内容:_______________________________________________#Definelistofworkersthatwillbeused#formappingrequestsworker.list=loadbal
此文档下载收益归作者所有