Four Test Machines
1. openfire is installed on all four machines, and mysql is installed on one machine, and openfire_mysql. SQL script is executed.
2. All four machines are configured on the same mysql machine (the openfire embedded database cannot be used) and the same domain name is used.
3. install and add plug-ins for all four machines. Hazelcas is the cluster plug-in of openfire_3.8 and later versions (it is also an open-source cluster plug-in that discards the Oracle commercial toll cluster plug-in ), the broadcast plug-in is used for cluster broadcast notification port 5701 (if udp broadcast is used, you cannot install the plug-in using the TCP/IP mode), and enables four machines to open port 5701.
For specific open port commands, see http://www.blogjava.net/liuguly/archive/2013/07/18/401701.html
4. Edit openfire/plugins/hazelcast/classes/hazelcast-cache-config.xml files for all four machines
<Join>
<Multicast enabled = "false"/>
<TCP/IP enabled = "true">
<Hostname> ip: 5701 <Hostname> ip: 5701 <Hostname> ip: 5701 <Hostname> ip: 5701 </TCP/IP>
<Aws enabled = "false"/>
</Join>
5. Restart openfire on four machines and Enabled clustering. The cluster is successfully deployed.
Openfire details: click here
Openfire: click here
Detailed installation process of Openfire in CentOS
Openfire server configuration notes based on Jabber/XMPP protocol in CentOS 5.4
Install Openfire on Ubuntu 12.04