Tag Archives: jabber

openfire on centos

Openfire is a real time collaboration (RTC) server licensed under the Open Source Apache License. It uses the only widely adopted open protocol for instant messaging, XMPP (also called Jabber). Openfire is incredibly easy to setup and administer, but offers rock-solid security and performance.

wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=81812 -O jre-7u45-linux-x64.tar.gz
tar xvzf jre-7u45-linux-x64.tar.gz
mv -v jre1.7.0_45 /opt
PATH=”$PATH”:/opt/jre1.7.0_45
ln -s /opt/jre1.7.0_45/bin/java /usr/bin/java

wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_8_2.tar.gz
tar xvzf openfire_3_8_2.tar.gz
mv -v openfire /opt

yum install mysql-server mysql
service mysqld start
mysql> CREATE DATABASE `openfire`;
mysql> CREATE USER ‘openfire’@’localhost’ IDENTIFIED BY ‘password’;
mysql> GRANT USAGE ON *.* TO ‘openfire’@’localhost’ IDENTIFIED BY ‘password’ WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON `openfire`.* TO ‘openfire’@’localhost’;
mysql> FLUSH PRIVILEGES;
mysql> quit

cd /opt/openfire
bin/openfire start

https://your_server_ip:9090
web installation interface, where you can finish openfire server installation