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