Install the Openfire service in CentOS

Source: Internet
Author: User
The system is the new installation system, the version is Centos5.6x86 synchronization Beijing time # ntpdate210.72.145.44 install jdk, add the execution permission # chmod + xjdk-6u35-linux-i586.bin to execute the installation file #. /jdk-6u35-linux-i586.bin new directory system is the new installation of the system, the version is Centos 5.6 x86 synchronization Beijing time # ntpdate 210.72.145.44 install jdk, increase the execution permission # chmod + x jdk-6u35-linux-i586.bin to execute the installation file #. /jdk-6u35-linux-i586.bin New Directory # mkdir/usr/java Mobile file # mv jdk1.6.0 _ 35/usr/java/jdk1.6 edit environment variable # vi/etc/profile add the following red field in the last line # Javaenvironment     Export JAVA_HOME =/usr/java/jdk1.6     ExportCLASSPATH =.: $ JAVA_HOME/jre/lib: $ JAVA_HOME/lib/tools. jarexportPATH = $ JAVA_HOME/bin: $ PATH Reload the environment variable # source/etc/profile to display the java version information. the version is displayed, indicating that it is successful! # Java-version: Java version "1.6.0 _ 35" Java (TM) SE Runtime Environment (build 1.6.0 _ 35-b10) Java HotSpot (TM) Client VM (build between 10-b01, mixed mode, sharing) Create directory # mkdir/usr/ant unzip file # tar zxvf apache-ant-1.8.4-bin.tar.gz-C/usr/ant/enter Directory # cd/usr/ant/rename file # mv apache-ant-1.8.4/ ant1.8 edit environment variable # vi/etc/profile add the following red fields to the last line # Antenvironment       Export ANT_HOME =/usr/ant/ant1.8       Export PATH = $ ANT_HOME/bin: $ PATH Reload the environment variable # source/etc/profile to display the java version information. the version is displayed, indicating that it is successful! # Ant-version Apache Ant (TM) version 1.8.4 compiled on May 22 2012 Install mysql # yum-y install mysql * start mysql service # service mysqld start set boot self-start # chkconfig mysqld on set root password # mysqladmin-u root password 123456 install openfire # rpm-ivh openfire-3.7.1-1.i386.rpm start the service # service openfire start set automatic startup # chkconfig openfire on Enter the database # mysql-u root-p Mysql> create databaseopenfire; Query OK, 1 row affected (0.06 sec) Mysql> useopenfire; Database changed Mysql> source/opt/openfire/resources/database/openfire_mysql. SQL; Mysql> grant all onopenfire. * to admin @ "%" identified by 'admin '; Mysql> quit Client access URL path http: // IP address: 9090/for relevant settings refer to blog Http://blog.csdn.net/k12104/article/details/21092455http://www.cnblogs.com/hoojo/archive/2012/05/13/2498151.htmlhttp://www.linuxidc.com/Linux/2012-09/69539.htmhttp://784734095.blog.163.com/blog/static/109176295201382211365026 7/openfire Configuration Reference blog http://blog.csdn.net/ares1201/article/details/7737872
Original: http://xiao987334176.blog.51cto.com/2202382/979677
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.