Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install openfire in AWS server (centOS server)

Steps to install openfire in linux

  • RHEL Based (Red Hat Enterprise Linux, CentOS, Fedora, openSUSE kind of, etc)
  • sudo yum install openjdk-7-jre wget wget
  • http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-3.8.2-1.i386.rpm

  • sudo rpm -ivh openfire-3.8.2-1.i386.rpm

can anyone help me out I have followed the above step and my server is RHEL Based

  1. RHEL Based (Red Hat Enterprise Linux, CentOS, Fedora, openSUSE kind of, etc)
  2. sudo yum install openjdk-7-jre wget
  3. wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-3.8.2-1 .i386.rpm
  4. sudo rpm -ivh openfire-3.8.2-1.i386.rpm
  5. sudo /etc/init.d/openfire status

it says openfire is not running.

but im not able to start openfire server. Please help me,

Thank you.

like image 505
Prasad Gone Avatar asked Dec 07 '25 05:12

Prasad Gone


1 Answers

I had some troubles with Openfire (rel. 3.10.2) setup on a CentOS server and I had to modify the script used to start/stop the service:

In order to avoid that Openfire tries to use its specific Java version and instead forcing it to use the system JAVA_HOME, we commented lines 90-93 of /opt/openfire/bin/openfire.sh:

# Override with bundled jre if it exists.
#if [ -f "$OPENFIRE_HOME/jre/bin/java" ]; then
#             JAVA_HOME="$OPENFIRE_HOME/jre"
#             JAVACMD="$OPENFIRE_HOME/jre/bin/java"
#fi

and lines 65-79 of /etc/init.d/openfire:

# Attempt to locate java installation.
#if [ -z "$JAVA_HOME" ]; then
#             if [ -d "${OPENFIRE_HOME}/jre" ]; then
#                             JAVA_HOME="${OPENFIRE_HOME}/jre"
#             elif [ -d "/etc/alternatives/jre" ]; then
#                             JAVA_HOME="/etc/alternatives/jre"
#             else
#                             jdks=`ls -r1d /usr/java/j*`
#                             for jdk in $jdks; do
#                                            if [ -f "${jdk}/bin/java" ]; then
#                                                            JAVA_HOME="$jdk"
#                                                            break
#                                            fi
#                             done
#             fi
#fi

I hope this could help.

like image 190
beaver Avatar answered Dec 08 '25 20:12

beaver