Centos6.3JDK1.7openfire3.9.3 1. download the openfire installation package official: http :/
- Centos 6.3
- JDK 1.7
- Openfire 3.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-zxf openfire_3_9_3.tar.gz
2. move the openfire folder to your working directory.
[Html]View plaincopyprint?
- Mv openfire/home/
3. go to the bin directory of openfire and execute the "Enable service" command.
[Html]View plaincopyprint?
- ./Openfire start
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
- Create database my_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-I INPUT-p tcp -- dport 9090-j ACCEPT # specify port 9090
- /Etc/rc. d/init. d/iptables save # save the changes
- /Etc/init. d/iptables restart # 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
- Export PATH =/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/openfire start">/etc/rc. loacl
OK! Done!