RedHat 6.5 install and deploy Openfire
Prepare the running environment
Openfire is currently the most popular message-oriented middleware in domestic instant messaging applications. Since Openfire is used in recent projects, I have to study it and start with the most basic installation:
Environment preparation
1. System Environment Linux: RedHat 6.5
2. jdk version: 1.7
1. jdk Installation
Download the tar.gz file 64-bit for jdk 1.7 linux
Use tar czvf jdk.tar.gz-C/usr/java
Configure Environment Variables
Use the VI editor to edit the/etc/profile file
Add the following code to the file:
Export JAVA_HOME =/usr/java/jdk_1.7.10
Export CLASSPATH =/usr/java/jdk_1.7.10/lib
Export PATH = $ JAVA_HOME/bin: $ PATH
2. Install openfire
Put the rpm file of openfire in the/usr/directory.
Run the rpm-ivh openfire. rpm command to install
After successful installation
Start with/etc/init. d/openfire start
Ps:
Close command/etc/init. d/openfire stop
Restart command/etc/init. d/openfire restart
OK! The openfire environment is ready.
Openfire installation Configuration
Openfire selected version: The openfire-3.10.2-1.i386.rpm chose this version because it provides the plug-ins required by the broadcast and Hazelcast Clustering Plugin clusters, of course, openfire has other ways to implement cluster configuration, we chose the method officially recommended by openfire to implement the cluster, which is very simple.
-------------------------------------- Split line --------------------------------------
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
Openfire solves Chinese garbled characters After MySQL database is used
Load Balancing for Openfire clusters using Nginx
-------------------------------------- Split line --------------------------------------
1. Select a language
Simplified Chinese
2. Server Settings
For cluster configuration, make sure that the domain names are consistent.
3. Database settings
Note: You must select a standard database connection. For cluster configuration, the data source must be the same for all nodes.
4. Shape settings
Note: We chose the ldap configuration.
For ldap configuration, select Active Directory.
The ing relationship must be consistent with the configuration in ldap. If the cluster environment is configured, after the first machine is configured, you can set the user map of ldap on other nodes by default (the default setting is obtained through the data source)
5. Administrator settings
All right, it's just a success to complete the community setting!
Now you can go to the Management page. On the Management page, install our plug-ins: jlpush (Message push plug-in) and archive (message record plug-in) and the broadcast and hazelcast plug-ins used for cluster deployment (these two plug-ins can be installed in available plug-ins)
The installation process is very simple. Click the [plug-in] button in the navigation bar, select the plug-in to be installed, and upload it. After the installation is successful, the installed plug-in will be displayed in the list.
Figure:
List of available plug-ins. The default value is null. You can click upgrade now. All available plug-ins not installed on the official website are displayed.
For more details, please continue to read the highlights on the next page: