Install and configure Instant Messaging data storage in OpenFire DATABASE PostgreSQL on OS CentOS 7.0

Openfire (previously known as Wildfire Server and Jive Messenger) is a XMPP server (Extensible Messaging and Presence Protocol, Extensible Messaging Protocol and presence information, formerly known as Jabber, written in Java).
Administration has a web-interface. Administrators can login from anywhere and edit the configuration of the server, add or delete users, conference rooms, and so on. © Wikipedia.
In this article, consider Instant Messaging Server installation OpenFire 3.9.3 (as of this writing, the latest version of) the data storage in DBMS PostgreSQL on CentOS operating system 7.0.
Before you follow the steps, you must have configured the network and it is advisable to set the Midnight Commander. How all this set can be found here.
Install wget

yum install wget

Disable SELINUX and FirewallD

vi /etc/selinux/config


systemctl disable firewalld

install PostgreSQL Server, turn on him and autoloading

yum install postgresql postgresql-server

systemctl enable postgresql.service

настраиваем параметры сервера

postgresql-setup initdb

and starting PostgreSQL service

systemctl start postgresql.service

Now let’s set the password to the user postgres

sudo passwd postgres

and enter below

su postgres

Затем создадим пользователя dbuser1 и базу данных openfire для него

createuser -sdrP dbuser1

createdb openfire —owner=dbuser1

exit the console


Open the file/var/lib/pgsql/data/pg_hba.conf

vi /var/lib/pgsql/data/pg_hba.conf

and fix line

host all all ident


host all all md5

Now open the file/var/lib/pgsql/data/postgresql.conf

vi /var/lib/pgsql/data/postgresql.conf

and uncomment the line #listen_addresses = ‘ localhost
Service PostgreSQL restart

systemctl restart postgresql.service

Then install the libstdc ++ library

yum install libstdc++.i686

as well as the Java OpenJDK

yum install java-openjdk

Then download the package openfire

cd ~


rename it to the human species

mv downloadServlet?filename=openfire%2Fopenfire-3.9.3-1.i386.rpm openfire-3.9.3-1.i386.rpm

and install

rpm -i openfire-3.9.3-1.i386.rpm

include it in startup

chkconfig openfire on

and run the service

service openfire start

Now on another machine on the network in the browser’s address bar, enter:

Leave a Reply

Your email address will not be published. Required fields are marked *