Centos6.3 install openfire

Source: Internet
Author: User

Centos6.3 install openfire

  1. Operating System Centos6.3
  2. JDK1.7
  3. Openfire3.9.3

1. Download The openfire installation package

Http://www.igniterealtime.org/downloads/index.jsp

2. Determine that everything in JDK is normal (including environment variable configuration)

Iii. Installation

1. Unzip the installation package

[Html] view plaincopyprint?
  1. Tar-zxfopenfire_3_9_3.tar.gz
2. Move the openfire folder to your working directory.

[Html] view plaincopyprint?
  1. Mvopenfire/home/
3. Go to the bin directory of openfire and execute the "enable service" command.

[Html] view plaincopyprint?
  1. ./Openfirestart
4. Because you need to use an external database, you must first create the database used by openfire in the database.

[Html] view plaincopyprint?
  1. Mysql-u username-p
  2. // Enter the password
  3. Createdatabasemy_openfire;
5. Open a browser to access http: // server ip: 9090

6. Configure the database as prompted and set the initialization management account and password

Note: If Server 9090 is disconnected, open port 9090 first.

[Html] view plaincopyprint?
  1. /Sbin/iptables-IINPUT-ptcp -- dport9090-jACCEPT # For the specified port 9090
  2. /Etc/rc. d/init. d/iptablessave # Save the changes
  3. /Etc/init. d/iptablesrestart # restart the firewall to make the change take effect.
7. Add Environment Variables

[Html] view plaincopyprint?
  1. Vi/etc/profile
  2. // Add the following statement at the end
  3. ExportPATH =/home/openfire/bin: $ PATH
  4. // Save and exit. This method of adding environment variables is valid for all users in the system.
[Html] view plaincopyprint?
  1. Source/etc/profile // environment variable effective immediately
8. Add auto-start

[Html] view plaincopyprint?
  1. Echo "/home/openfire/bin/openfirestart">/etc/rc. loacl

OK! Done!

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.