IOS instant messaging and ios instant messaging Development

Source: Internet
Author: User

IOS instant messaging and ios instant messaging Development

XMPP is a standard protocol for international Instant Messaging (even if almost no one in China uses this Protocol). It defines IM communication standards, we still need servers, but for our mobile development programmers, we need to build a server on our own, so there is a shortage of memory, and Openfire is just to help us solve this problem.

Openfire is developed in Java and the open-source RTC server is based on the XMPP (Jabber) protocol. You can use it to easily build an efficient Instant Messaging Server ..
File used: Link: http://pan.baidu.com/s/1kTBuY95
Password: 5rfm

To install the Openfire server, you first need to build a database, where we use mysql-5.6.12-osx10.7-x86_64.

Install MySql database

Double-click to open

Install the pkg File

The installation is successful after you enter the password.
Then install the file (because MySQL does not appear in the application after it is installed as a result, you need to install the system preference management stuff so that it appears in the System Preference management location ).
After the installation is complete, the MySQL shortcut will be advantageous in the system
Click this shortcut to start MySQL

If you want your database to start automatically, install this file (No installation is required, but remember to open it when you use it)
Then select here
OK. Now our database has been installed.
After MySQL is installed, your account is: the root password is blank.
Now let's set the mysql password.
Open the terminal and enter the command.

Open the terminal and enter sudo vi ~ /. Bash_profile press Enter I press enter and paste the following content # mysqlalias mysql = '/usr/local/mysql/bin/mysql' alias mysqladmin = '/usr/local/mysql/bin/mysqladmin' # lsalias ls = 'LS-G' press enter and Press ESC to enter: wq press enter to restart the terminal program. "if an error occurs during installation, use sudo rm-rf. bash _ * and then re-enter sudo vi ~ /. Bash_profile start from here"

Then modify the MySql password:

Also open the terminal: Enter mysqladmin-u root password "123456" to change the password to 123456 and enter the following command mudong $ mysql-u root-p and enter 123456 to check whether the password is successfully modified.

Now that mysql has been configured, we can install mysql visual management tool Mysql-workbench.

Mysql-workbench
Open the installation package of Mysql-workbench

You can drag the installation directly,
Open Mysql-workbench to go to the following page:

Click New Connection



Open this connection to go to your mysql visual management interface.


Now we can install openfire.

Openfire:
Install this file

This interface appears after installation is complete.

Reopen your system preference settings,

You can see that your Openfire has been installed.
Double-click Openfire to open the interface. (Note: Openfire is based on java. Therefore, we need to install the java Runtime Environment. If you have no installed environment, install the java Runtime Environment first)

In this way, Openfire has been installed on our computer, and then we need to associate the table used by Openfire in the database we just created.

Open the terminal and enter cd/usr/local and press ENTER open. Press enter to open the folder where openfire is located.


Now there is a little red dot in this folder. We found that it cannot be opened.
Right-click the folder and choose show introduction.



Then we switch to sqlWorkBench



This interface will appear after it is imported.

Then open opdenfire

Go to our openfire configuration page


Continue

Select the standard database connection to continue (keep the database in the Enabled state)

Continue
Click continue here.

Configure your account name and password.

Okay. Now our Openfire has been configured.

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.