Centos6.3 install openfire
- Operating System Centos6.3
- JDK1.7
- Openfire3.9.3
1. Download The openfire installation package
Http://www.igniterealtime.org/downloads/index.jsp
2. Determine that everything in JDK is normal (including environment variable configuration)
Iii. Installation
1. Unzip the installation package
[Html] view plaincopyprint?
- Tar-zxfopenfire_3_9_3.tar.gz
2. Move the openfire folder to your working directory.
[Html] view plaincopyprint?
- Mvopenfire/home/
3. Go to the bin directory of openfire and execute the "enable service" command.
[Html] view plaincopyprint?
- ./Openfirestart
4. Because you need to use an external database, you must first create the database used by openfire in the database.
[Html] view plaincopyprint?
- Mysql-u username-p
- // Enter the password
- Createdatabasemy_openfire;
5. Open a browser to access http: // server ip: 9090
6. Configure the database as prompted and set the initialization management account and password
Note: If Server 9090 is disconnected, open port 9090 first.
[Html] view plaincopyprint?
- /Sbin/iptables-IINPUT-ptcp -- dport9090-jACCEPT # For the specified port 9090
- /Etc/rc. d/init. d/iptablessave # Save the changes
- /Etc/init. d/iptablesrestart # restart the firewall to make the change take effect.
7. Add Environment Variables
[Html] view plaincopyprint?
- Vi/etc/profile
- // Add the following statement at the end
- ExportPATH =/home/openfire/bin: $ PATH
- // Save and exit. This method of adding environment variables is valid for all users in the system.
[Html] view plaincopyprint?
- Source/etc/profile // environment variable effective immediately
8. Add auto-start
[Html] view plaincopyprint?
- Echo "/home/openfire/bin/openfirestart">/etc/rc. loacl
OK! Done!