Tuesday, January 17, 2017

How To Upgrade Openfire on CentOS 7

Overview


Openfire is an open source instant messaging chat server that runs on XMPP, which is a server that facilitates XML based communication, such as chatting services. In this guide we will look into the process of upgrading the Openfire.

Applies To

CentOS 7, RHEL 7; tested on CentOS 7

Pre-requisites

  • Backup Database (MySQL)
  • Backup Openfire configuration file openfire.xml
  • Openfire Portal Admin Access

Openfire Upgrade

Openfire upgrade consists of 3 step process, in this guide we will go through this process step by step.

Launch Openfire – Admin Console

Launch the Openfire administrator console in a browser; Launch the below URL or https://<Chat ServerName>:9091/.

If server is configured to automatically notify, service will check the Openfire’s latest update at regular intervals. This step is optional login to the Openfire portal, https://localhost:9091.




Stop Openfire Service

First step is to stop the Openfire service, to stop the service run the command;

systemctl stop openfire && systemctl status openfire -l



Backup Database (MySQL)

Next step is to take database backup, to take the backup run the command; In this case we are backing up with current date and time.

mkdir /opt/openfire/backups/ (optional)
cd /opt/openfire/backups/
mysqldump -uopenfire -p'0penfire' openfire > db_backup_$(date +%Y-%m-%d_%H:%M).sql



Backup Configuration File – Openfire.xml

Next step is to take configuration backup, to take the backup with current date and time run the command;

cp /opt/openfire/conf/openfire.xml /opt/openfire/backups/chat_backup_$(date +%Y-%m-%d_%H:%M).xml



Download Openfire Package

Download the latest package from the Openfire; to download the package run the command;

wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_10_3.tar.gz



Install Openfire Package

Next step is to install the downloaded package to install run the command;

rpm -Uvh openfire-4.1.1-1.x86_64.rpm



Query the Package Installation

After installation is completed, verify the package installation is completed; to know the status run the command;

yum list installed | grep openfire or rpm -qa | grep openfire



Start Openfire Service

Next step is to start the Openfire service and optionally check the service status; run the command;

systemctl daemon-reload

systemctl start openfire && systemctl status openfire



Launch Openfire – Admin Console

After starting the service, launch the Openfire portal and login, verify the Openfire version.



Slideshare Info

A step by step guide with screenshots is uploaded to slideshare.





No comments:

Post a Comment