JBoss7.1.1 final+mod_cluster-1.2.0.final Cluster configuration

Source: Internet
Author: User

Project requirements, need JBoss in Windows cluster, record for later

jdk:1.7

Server environment: PC Windows XP

JBoss Version: 7.1.1 Final

mode_cluster:1.2.0 Final

1, Configuration Mode_cluster

Download Mode_cluster 1.2.0 Final Windows 32-bit version (Test PC is 32 bit, production environment depends on server) and Jboss7.1.1 final

Unzip Mode_cluster package to directory D:\mySoftware\httpd_mod_cluster\

Run the Installconf.bat file under D:\mySoftware\httpd_mod_cluster\bin\ to generate the default configuration

Modify Conf\httpd.conf

Modify #listen 12.34.56.78:80 to Listen 192.168.196.114:8085, port free

Modify #servername 12.34.56.78:80 to ServerName 192.168.196.114:8085

At the end, modify <ifmodule manager_module> to the following section

<ifmodule manager_module>
Listen 192.168.196.114:7777
Managerbalancername Mycluster
<virtualhost *:7777>
<location/>
Order Deny,allow
Deny from all
Allow from all
</Location>

KeepAliveTimeout 300
Maxkeepaliverequests 0
#ServerAdvertise on http://127.0.0.1:6666
Advertisefrequency 5
Advertisesecuritykey 1234567890
#AdvertiseGroup 224.0.1.105:23364
Enablemcpmreceive
Allowdisplay on

<Location/mod_cluster_manager>
SetHandler Mod_cluster-manager
Order Deny,allow
Deny from all
Allow from all
</Location>

</VirtualHost>
</IfModule>

Listenlisten 192.168.196.114:8085 is the listening IP and port so that HTTPD will handle the request to access this IP port,

ServerName Listen 192.168.196.114:8085 is an external access address, when the server has DNS functionality, can be changed to servername www.example.com:80, DNS to resolve the IP of the domain name

Listen 192.168.196.114:7777 is the IP and interface of the JBoss cluster module connection httpd cluster and is also the address for managing page access

2, Configuration jboss7.1.1

Unzip the JBoss tarball to the directory D:\MYSOFTWARE\JBOSS7

Configure environment variable Jboss_home to D:\MYSOFTWARE\JBOSS7

Delete Standalone\configuration\standalone.xml (best backup before deleting)

Copy standalone-full-ha.xml and rename to Standalone.xml

Modify File Contents

Modify <serverxmlns= "urn:jboss:domain:1.2" > For

<server name= "Standalone-node1" xmlns= "urn:jboss:domain:1.2" >

Modify <mod-cluster-configadvertise-socket= "Modcluster" > For

<mod-cluster-config advertise-socket= "Modcluster" proxy-list= "192.168.196.114:7777" advertise-security-key= " 1234567890 ">

Ps:proxy-list= "192.168.196.114:7777" for Mod_cluster in Listen 192.168.196.114:7777

Advertise-security-key= "1234567890" and Mod_cluster in the Advertisesecuritykey 1234567890 to be consistent

I refer to the two blogs are configured under Linux, there is no configuration proxy-list= "192.168.196.114:7777, I am configuring proxy-list under Windows Mod_cluster and JBoss always can not get in touch

Modify <subsystem xmlns= "urn:jboss:domain:web:1.1" default-virtual-server= "Default-host" native= "false" > for

<subsystem xmlns= "urn:jboss:domain:web:1.1" default-virtual-server= "Default-host" instance-id= "${ Jboss.node.name} "native=" false ">

Modify the contents of the <interfaces></interfaces> tag as

<interfaces>
<interface name= "Management" >
<inet-address value= "${jboss.bind.address.management:192.168.196.114}"/>
</interface>
<interface name= "Public" >
<inet-address value= "${jboss.bind.address:192.168.196.114}"/>
</interface>
<interface name= "unsecure" >
<inet-address value= "${jboss.bind.address.unsecure:192.168.196.114}"/>
</interface>
</interfaces>

Start the Mod_cluster directory Bin\httpd.exe

Deploying Web Projects to \standalone\deployments\

Start the JBoss directory under Bin\standalone.bat

Browser input Http://192.168.196.114:7777/mod_cluster_manager See the following screen to indicate a successful configuration

Access to the HTTP://192.168.196.114:8085/project name/index.html can be accessed through httpd mode_cluster

Reference blog:

http://blog.csdn.net/xixixi9988/article/details/21651449

http://yang-min.iteye.com/blog/1961574

Http://wenku.baidu.com/link?url=bteMg0-59v44fnB7T85n9lRgT8ARikkERacGkYp3qWP05Ib977_ 1lz2qjgeuyew7yyu7rdyl6ilovpupobz_00dkc-9tym3daxucopbgt83

This address: http://www.cnblogs.com/wangjiajun/p/4211605.html

JBoss7.1.1 final+mod_cluster-1.2.0.final Cluster configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.