日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Apache+jboss群集部署

發布時間:2025/3/15 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Apache+jboss群集部署 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Jboss default方式上的Cluster配置[二] - 操作系統
http://www.myexception.cn/operating-system/862858.html

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

Install

Unzip gzip -d httpd-2.2.9.tar.gz tar xvf httpd-2.2.9.tarConfig cd httpd-2.2.9 ./configure --prefix=/opt/apache2Complile makeInstall. make install



Configuraion

vi /opt/apache2/conf/httpd.conf
將User daemon和Group daemon改為User apache和Group apache

Listen 192.168.150.75:80 ServerName 192.168.150.75:80



Add user and group for apache:

groupadd apache useradd 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 lib loadModule jk_module modules/mod_jk.so# Where to find workers.properties JkWorkersFile conf/workers.properties# Where to put jk logs JkLogFile logs/mod_jk.log# Set the jk log level [debug/error/info] JkLogLevel info# Select the log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"# JkOptions indicates to send SSK KEY SIZE JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories# JkRequestLogFormat JkRequestLogFormat "%w %V %T" JkMountFile conf/uriworkermap.properties



workers.properties

#Define list of workers that will be used # for mapping requests worker.list=loadbalancer,status# Define Node1 # modify the host as your host IP or DNS name. worker.node1.port=8009 worker.node1.host=192.168.150.75 worker.node1.type=ajp13 worker.node1.lbfactor=1# Define prefered failover node for node1 worker.node1.redirect=node2# Define Node2 # modify the host as your host IP or DNS name. worker.node2.port=8009 worker.node2.host=192.168.150.76 worker.node2.type=ajp13 worker.node2.lbfactor=2 worker.node2.redirect=node1# Load-balancing behaviour worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=node1,node2 worker.loadbalancer.sticky_session=1# Status worker for managing load balancer worker.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

?

轉載于:https://www.cnblogs.com/paul8339/p/6956364.html

總結

以上是生活随笔為你收集整理的Apache+jboss群集部署的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。