Build an XMPP server [Black Apple system] And a mac10.12xmpp Server Based on MAC10.12 + MYSQL5.7.17

Source: Internet
Author: User

Build an XMPP server [Black Apple system] And a mac10.12xmpp Server Based on MAC10.12 + MYSQL5.7.17

I learned from previous companies that XMPP can be used to build instant messaging apps. Out of curiosity, I learned how to build an XMPP server in my spare time. Many problems were encountered, after a rough journey, we finally succeeded. [these rough experiences are mainly caused by our own ignorance]

The following describes the required tools.

1. Download the tool before installation

1. mysql Server Download

The process of registering an oracle account for downloading is quite simple. If someone needs my account, you can leave the contact information in the comments, and the download speed is fast enough.

 

2. Download mysql workbench

The mysql graphical management tool is provided by Ollie.

 

3. openfire download

This download process is very difficult to download on the official website at a speed of several KB, but you can find it by yourself from the Huawei army.

 

4. Download JDK for mac

After the official website is downloaded and installed, [installation is required because the OPENFIRE environment needs to be installed]

Ii. installation and configuration

1. Install mysql

After installation, go to system settings to start the service.

 

 

2. Install mysql workbench

  

After installation, click

+ Create database connection

At first, the default password of root found on the Internet was incorrect. Finally, I noticed in a post that the random password was not found, the last thing you know is that after you install mysql, it will send you a notification, which is too pitfall in your notification bar.

 

OK connection successful

 

Because openfire needs to use the mysql database, we should first create an xmppdata database.

3. Install openfire

 

 

Create an XMPPdata database through workbench When configuring database connection. Otherwise, an error occurs.

Openfire has prepared its data table for us. Now we export its SQL script.

Enter sudo su on the terminal

Then enter cd/usr/local/openfire/resources/database

Enter open openfire_mysql. SQL

After that, we found that in workbench, there are more tables in the XMPPdata database, that is, the data table we need to build XMPP.

Http: // localhost: 9090/login. jsp? Url = % 2Findex. jsp this page is used to manage server configurations

OK environment is set up

 

Related Article

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.