Installation configuration on "OpenFire" Ubuntu

Source: Internet
Author: User
Tags import database

First, install the JDK

(1), create a directory to save Java

[email protected]: ~$ sudo mkdir/opt/jdk

(2) Download JDK

Unzip the JDK into the/OPT/JDK

[email protected]: ~$ cd/opt/jdk

[email protected]: ~opt/jdk$ tar-zxvf jdk-8u181-linux-x64.tar.gz

(3), modify the environment variable file

[email protected]: ~$ sudo vi/etc/profile

Export java_home=/opt/jdk/jdk1.8.0_181
Export JRE_HOME=${JAVA_HOME}/JRE
Export Classpath=.:{java_home}/lib:${jre_home}/lib
Export path= $PATH: ${java_home}/bin:${jre_home}/bin

(4), let the environment variable take effect

[email protected]: ~$ source/etc/profile

(5), view the system default Java version information

[email protected]: ~$ javac-version
Java Version "1.8.0_181"

Second, installation OpenFire

(1), Decompression OpenFire program

[email protected]: ~$ tar zxvf openfire_4_1_3.tar.gz

Openfire/
openfire/.install4j/
Openfire/.install4j/messagesdefault
Openfire/.install4j/firstrun
Openfire/.install4j/i4j_extf_0_19dpaqb.utf8
Openfire/.install4j/i4j_extf_10_19dpaqb.html
Openfire/.install4j/i4j_extf_1_19dpaqb.utf8
Openfire/.install4j/i4j_extf_2_19dpaqb.utf8
Openfire/.install4j/i4j_extf_3_19dpaqb.utf8
Openfire/.install4j/i4j_extf_4_19dpaqb.utf8
..........
...........
openfire/resources/spank/web-inf/
Openfire/resources/spank/web-inf/web.xml
Openfire/resources/spank/index.html

(2), move the extracted OpenFire directory to the/OPT directory

[email protected]: ~$ sudo mv openfire/opt

(3), create a openfire group

[email protected]: ~$ sudo groupadd openfire

(4), add a user and join the user to the OpenFire group
[email protected]: ~$ sudo useradd-d/opt/openfire-g openfire openfire

(5) Change of the/opt/openfire and the group of owners and genera

[email protected]: ~$ sudo chown-r openfire:openfire/opt/openfire

(6), add openfire environment variable

[email protected]: ~$ sudo gedit/etc/profile

#openfire

Export Openfire_home=/opt/openfire

Export path= $PATH: $OPENFIRE _home/bin

Save.

[email protected]: ~$ source/etc/profile

(7), Executive OpenFire

[email protected]: ~$ su-openfire
Password:
$ CD Bin
$./openfire Start
Starting OpenFire

Third, configuration database

(1), the directory where the database script provided by OpenFire

(2), login MySQL

(3) Create a OpenFire database

(4), switch to OpenFire database

(5), Import Database script

(6), refresh permissions

Iv. installation and configuration of the OpenFire

(1), enter the following URL, select the appropriate language

(2) Enter the following information according to the company's situation

(3), select an external database

(4) Enter the MySQL connection information

(5) Select the default authentication

(6) Enter the administrator's password

(7), installation completed

(8) Enter the login screen

(9) Enter user name and password

(10), Login success

Installation configuration on "OpenFire" Ubuntu

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.