Configuring XMPP server under IOS openfire detailed

Source: Internet
Author: User
Tags administrator password

First, download and install OpenFire

1. Download the latest OpenFire for Mac version to http://www.igniterealtime.org/downloads/index.jsp

For example: OpenFire 3.8.1, downloaded files: openfire_3_8_1.dmg

2. Click Install and perform the default action

3. Start the OpenFire service

In the other System Preferences, click OpenFire Preferences

After startup, click the Open Admin Console button to automatically open the local Web configuration page in the browser http://localhost:9090/setup/index.jsp

Second, configure the OpenFire server

1. Set the language, select Chinese

2. Host Settings

Set the host's Access IP address

Note: The domain cannot be a machine name, otherwise it will be the following error:

HTTP error:500 Internal_server_error

Local domain, to be set to 127.0.0.1

3. Database Settings

If you want to set up an external database (recommended, for example: MySQL), select Standard database connection

4. Setting up a database connection

(1) database-driven selection: MySQL, if you have installed MySQL (specific installation method can refer to the previous article: install MySQL on mac)

(2) JDBC driver, unchanged by default

Com.mysql.jdbc.Driver

(3) Database URL:

The form is as follows:

jdbc:mysql://Your host Name: port number/database name

This is set to

Jdbc:mysql://localhost:3306/openfire

where hostname [Host-name] is changed to localhost,

where the database name [Database-name] is changed to OpenFire

To solve the problem of database character encoding, you can add the following

? useunicode=true&characterencoding=utf-8&charactersetresults=utf-8

The final URL form is

Jdbc:mysql://localhost:3306/openfire?useunicode=true&characterencoding=utf-8&charactersetresults=utf-8

Note: If a database named OpenFire already exists, the following error will be reported, the connection configuration is unsuccessful

The OpenFire database schema does not appear to be installed. Follow the installation Guide to fix this error.

Pre-MySQL Database preparation works as follows:

<1> Set/usr/local/openfire folder access to read/write

Method 1: Go to Folder/usr/local/in the Finder, right-openfire folder, display introduction

Click on the lock icon in the lower right corner to unlock and set permissions to: can read and write

Method 2: Open the terminal and enter the following command

sudo chmod 777/usr/local/openfire

Where 777 means grant read and write permission, 000 means no access

<2> in the terminal, log in to MySQL

Mysql-u root-p

Then enter the root password of the database

<3> Create a database OpenFire

Create Database OpenFire;

<4> Import The data table under OpenFire resource folder Resources/database

Use OpenFire;
Source/usr/local/openfire/resources/database/openfire_mysql.sql

A row of import processes appears at the terminal

<5> Refresh Permissions

Flush privileges;

<6> quit MySQL

Exit

(4) User name and password

The username and password here is the account used to access the MySQL database: root, and the root password to install the MySQL settings

5. Feature Settings

If you do not intend to use LDAP, leave the default setting

6. Set the OpenFire server Administrator's account and password

Can fill in an admin mailbox, enter the password to be set

Complete Registration

7. Login to the management console

The default administrator account is "admin", the default administrator password "admin", if the above set a new password, then the administrator password is the new password

If you want to remove the default admin account and customize it, you need to do the following

(1) in the terminal, login to the specific database (OpenFire)

Mysql-u root-p OpenFire

Then enter the root password of the database

(2) Delete the admin account in the table "Ofuser"

Delete from Ofuser where username= ' admin ';

(3) Create a custom administrator (user name: Xiaodao, Password: 123)

INSERT into Ofuser (username, Plainpassword, Encryptedpassword, name, email, creationdate, modificationdate) VALUES (' Xia Odao ', ' 123 ', ' 123 ', ' Administrator ', ' [email protected] ', ' 0 ', ' 0 ');

NOTE: If you reset the user name, you must restart the OpenFire server

8. Background Control Interface

Third, uninstall OpenFire

1. Stop the Service

In other settings in System Preferences, open OpenFire preferences

Click the Stop OpenFire button to stop the service

2. deleting files

Open Terminal, enter the following command

sudo rm-rf/library/preferencepanes/openfire.prefpane
sudo rm-rf/usr/local/openfire
sudo rm-rf/library/launchdaemons/org.jivesoftware.openfire.plist

After the first command, you need to enter the native administrator password

Configuring XMPP server under IOS openfire detailed

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.