Build an operfire server on Mac

Source: Internet
Author: User

1. Download and install openfire

1. download the latest openfire for Mac at http://www.igniterealtime.org/downloads/index.jsp

For example, openfire 3.8.1, the downloaded file: openfire_3_8_1.dmg

2. Click Install and perform the default operation.

 

3. Start the openfire Service

In other settings of system preferences, click openfire preferences.

 

2. Configure the openfire Server

1. Set the language and select Chinese

 

2. Host settings

Set the access IP address of the host

 

Note: The domain cannot be the machine name; otherwise, the following error occurs:

HTTP Error: 500 internal_server_error

Set the local domain to 127.0.0.1.

3. Database settings

If you want to set up an External Database (recommended, such as MySQL), select the standard database connection.

 

4. Set database connection

 

(1) database Driver selection: MySQL, provided that MySQL has been installed (for specific installation methods, refer to the previous article: Install MySQL on Mac)

(2) The JDBC driver remains unchanged by default.

  1. Com. MySQL. JDBC. Driver
Copy code (3) Database URL in the following format:
  1. JDBC: mysql: // your host name: Port Number/Database Name
Copy the code and set it
  1. JDBC: mysql: // localhost: 3306/openfire
Copy the code and change the host name [host-name] to localhost. Change the database name [database-name] To openfire to solve the problem of database character encoding. You can add
  1. ? Useunicode = true & characterencoding = UTF-8 & charactersetresults = UTF-8
The final URL format of the copied code is
  1. JDBC: mysql: // localhost: 3306/openfire? Useunicode = true & characterencoding = UTF-8 & charactersetresults = UTF-8
Copy the code. Note: if an openfire database already exists, the following error is reported. The connection configuration is not successful. The openfire database schema does not appear to be installed. follow the Installation Guide to fix this error. preparations for the MySQL database in the early stage are as follows: <1> set the access permission for the/usr/local/openfire folder to read/write Method 1: Go to the folder/usr/local/In the finder /, right-click the openfire folder, click the lock icon in the lower right corner to unlock the folder, and set the permission to: Read and Write <ignore_js_op>

 

Build an operfire server on Mac

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.