This installs the dependencies:
yum -y install wget java glibc.i686Change to the /tmp directory
cd /tmpDownload the RPM from this page -or- use this direct link for the RPM.
wget http://download.igniterealtime.org/openfire/openfire-3.8.1-1.i386.rpm
Run and install the RPM
yum -y install ./openfire*rpmOnce the RPM has been installed, start the openfire service
service openfire startEnsure that openfire will boot with your server
chkconfig –level 235 openfire onFor this instance, you’ll want to make sure iptables is not running, you can configure the iptables rules how you need them later.
service iptables stopInstall mysql server
yum -y install mysql-serverStart mysql server
/sbin/service mysqld startEnsure mysql starts when the server does
/sbin/chkconfig mysqld onStart the basic mysql secure install
/usr/bin/mysql_secure_installationhit “enter” to give no password
generate and save a new root password
hit “enter” aka “Y” on the rest of the questions
Restart mysql server
/sbin/service mysqld restartLogin to mysql as root (use the new root password you just entered)
/usr/bin/mysql -u root -pCreate database
CREATE DATABASE openfire;Create user (update *username* and *securepassword* below)
INSERT INTO mysql.user (User,Host,Password) VALUES(‘username’,’127.0.0.1′,PASSWORD(‘securepassword’));Save your changes
FLUSH PRIVILEGES;Give the user access to the database
GRANT ALL PRIVILEGES ON openfire.* to openfire@127.0.0.1;Save your changes
FLUSH PRIVILEGES;Exit mysql
exitNavigate in your browser to
http://yourdomain.com:9090
Tidak ada komentar:
Posting Komentar