XMPP Environment Setup (install your own standalone MySQL and server (openfire) in MAC environment for instant chat)

Source: Internet
Author: User
Tags live chat

1 Brief overview

A About XMPP

http://xmpp.org

Instant Messaging technology im-instant Messaging? Users live chat online. What do you need to talk to both sides? A chat window, which one? user input information, chat double

You can see what you're talking about.

See IM system AOL, Yahoo im, MSN, QQ

The difference between them lies in the realization of the communication protocol, the core of the instant communication technology. The heart lies in its transmission protocol.

Two XMPP Communication Protocol

An agreement to describe the information in?? How to transmit on the network, if there is a transmission protocol, each IM can communicate directly, in order to create a system of instant communication standard,?? The current IM protocols that have been present include:
SIP:IETF International interconnection?? Network? Project Task Group (the Internet Engineering Task Force, or IETF) dialog Initial protocol

Simple: Instant Messaging Dialog Initial protocol and extended Protocol
APEX: What should I do with the exchange protocol?
PRIM: Explicit display and Instant Messenger protocol
XMPP: XML-based, open extensible Communication Protocol and Table Protocol (also known as Jabber Protocol)

[Three] working principle

========================================

Configuration under 2.mac system

Prerequisite: Download 4 dmg files (need to leave a mailbox) mysql-5.6.12-osx10.7-x86_64.dmg/mysql-workbench-gpl-5.2.47-osx-i686.dmg/ Jdk-8u40-macosx-x64.1427945120.dmg/openfire_3_9_3.dmg

Begin

One. install MySQL

1. Double-click the MySQL installation file

After the installation is successfully installed

2. double-click Mysql.prepanel

Find System Preferences to start MySQL

3. Open the terminal

Cd/usr/local/mysql/bin

Enter the command to start MySQL

./mysql-uroot-p ( in the bin directory, start

Enter MySQL directly (because the installation password is empty, so you can enter it directly at the input password)

4.mysql>show databases;

If only one database restarts the machine

5. \q Exit mysql>

6./mysqladmin-u root password 123456 ( in the bin directory, set the password 123456

7. (Additional code, test) test password is set correctly

Enter the command to start MySQL

./mysql-uroot-p ( in the bin directory, start

Go directly to MySQL (because the password is just set to 123456, so the return will be an error

./mysql-uroot-p( again in the bin directory, start

Enter password 123456, successfully enter mysql> instructions All OK, close the Command line window

Two. Installing Mysqlworkbench

2.1 Why?

In order to more easily manage the MySQL database (MySQL database is equivalent to a heap of data stored in the computer warehouse, in order to facilitate the graphical processing of data, so the installation of Mysqlworkbench, but also understand the command pack for the graphical interface

2.2 Installation

Drag and drop into application

2.3 Configuration

Connection name Root (database name

Password 123456 (Database password

Database name test or MySQL randomly lose

2.4 Build Your own database (how to build it, I share a SQL statement package

Three. Installing OpenFire

3.1 Installing the JDK (OpenFire premise to install JAVAJDK, it's like eating that bowl.

After the installation is complete, enter the terminal

Java-version (If the Java version is displayed, the description succeeds

3.2 Installing OpenFire

Set up in System Preferences after installation is complete

The focus is on the configuration database

Last Change Password

XMPP Environment Setup (install your own standalone MySQL and server (openfire) in MAC environment for instant chat)

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.