Step by Step Procedure for install and configure Openfire on Centos and Linux Latest



yum install purge openjdk*
After that, go and download Java JRE package from here. When prompted, save the download. Please select the 32 or 64 bit .tar.gz version file from the list.
tar -xvf ~/Downloads/jre-7u3-linux-i586.tar.gz
yum mkdir -p /usr/lib/jvm/jre1.7.0
yum mv jre1.7.0_03/* /usr/lib/jvm/jre1.7.0/
yum update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java 0

mysql -u root -p;
#mysql > CREATE DATABASE openfire;
#mysql > quit;
3.Download the openfire 3.7.1 .deb package from http://www.igniterealtime.org/downloads/index.jsp
I get the openfire_3.7.1_all.deb, put it on /opt
when I try to install using this command:
4.
dpkg -i openfire_3.7.1_all.deb

Next, edit the configuration file /etc/openfire/openfire.xml, inserting your Linode's public IP address in the <interface> section, and removing the "<!-- -->" comment markers that surround this section.

File excerpt:/etc/openfire/openfire.xml

<interface>12.34.56.78</interface>

Restart Openfire with the following command:

/etc/init.d/openfire restart



Or

1) Download and make a fresh installed Linux/Centos Latest verssion for 32/64 bits.
2) Download and install jre-6u33-linux-i586.bin (jdk is not need just jre):
Get it here (or google for it):
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Then set it up:
chmod +x jre-6u33-linux-i586.bin Or Download tar.gz file
./jre-6u33-linux-i586.bin Extract tar file
mv jre1.6.0_33 /opt


3)# mysql -u root -p;
#mysql > CREATE DATABASE openfire;
#mysql > quit;
4) Download and install openfire openfire_3_7_1.tar.gz
tar xvfz openfire_3_7_1.tar.gz
mv openfire /opt

Go to the openfire folder and continue with the rest:

6)cd /opt/openfire/bin
Uncomment and modify the following line at the beginning of "/opt/openfire/bin/openfire" script to override "JAVA_HOME":

INSTALL4J_JAVA_HOME_OVERRIDE=/opt/jre1.6.0_33

WARNING: This is not need if "echo $JAVA_HOME" point to a valid ORACLE Java 1.5 (or later) or OPENJDK installation path. Openfire does not works with "gcj" which can be installed on Ubuntu, check installed version executing "java -version".

Then just start it!

7)./openfire start

8)Next, edit the configuration file /etc/openfire/openfire.xml, inserting your Linode's public IP address in the <interface> section, and removing the "<!-- -->" comment markers that surround this section.

File excerpt:/etc/openfire/openfire.xml

<interface>12.34.56.78</interface>

Restart Openfire with the following command:

9)/etc/init.d/openfire restart










0 comments:

Post a Comment