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.
- Com. MySQL. JDBC. Driver
Copy code (3) Database URL in the following format:
- JDBC: mysql: // your host name: Port Number/Database Name
Copy the code and set it
- 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
- ? Useunicode = true & characterencoding = UTF-8 & charactersetresults = UTF-8
The final URL format of the copied code is
- 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