*Disabled SELinux [[email protected] ~]# vi /etc/selinux/config change SELINUX=enforcing to SELINUX=disabled [[email protected] ~]# reboot (to affect SElinux config) *Download and install Openfire [[email protected] ~]# yum -y install wget mysql-server glibc.i686 [[email protected] ~]# wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-3.8.2 2-1.i386.rpm [[email protected] ~]# rpm -ivh openfire-3.8.2-1.i386.rpm Preparing... ########################################### [100%] 1:openfire ########################################### [100%] [[email protected] ~]# service openfire start Starting openfire: [[email protected] bin]# service openfire status openfire is running [[email protected] bin]# chkconfig --level 2345 openfire on *Disabled firewall for temporary : [[email protected] ~]# service iptables stop iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Unloading modules: [ OK ] [[email protected] ~]# chkconfig --level 2345 iptables off *Setup MySQL [[email protected] ~]# service mysqld start [[email protected] ~]# mysql_secure_installation [[email protected] ~]# mysqladmin -uroot -p mysql> create database openfire; Query OK, 1 row affected (0.06 sec) mysql> grant all privileges on openfire.* to 'openfire'@'localhost' identified by 'openfirepassword'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.01 sec) mysql> quit Bye [[email protected] ~]# chkconfig --level 2345 mysqld on
If get error like this (or Openfire can’t start) :
[[email protected] bin]# ./openfire.sh ./openfire.sh: /opt/openfire/jre/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory ./openfire.sh: line 165: /opt/openfire/jre/bin/java: Success
Install a glibc.i686 using YUM
[[email protected] ~]# yum -y install glibc.i686