Deploying OpenFire for IM (Instant Message) service (TCP/IP service) with database MySQL, client Spark on Linux deployment OpenFire IM Messaging Middleware Services

Source: Internet
Author: User

Is you a hacker?

How to build another qq/wechat/whatsapp/skype/imessage?

Let's go through this!!!!

Materials:

A Linux/unix/windows/mac Computer/server, and do some basic things!

Is you feeling?

Okay, let ' s ride the rocket!

Get materials:1. A Search Engine

duckduckgo.com to search ' OpenFire '

2. Service Software

' OpenFire ' From here http://www.igniterealtime.org/downloads/index.jsp

And the client software spark: ' Spark ' (here for example:download the Http://www.igniterealtime.org/download S/download-landing.jsp?file=openfire/openfire_3.9.3_all.deb, because I deployed it on a debian/ubuntu machine)

3. Packages Installation
 For some situations, some other packages such as openjdk-6-JRE should is installed or other packages  sudoinstall apache2 openjdk-6-jre mysql-server mysql-client- Then sudo dpkg-i/path/to/openfire_3. 9. 3_all.deb
4. Database Settings
Mysql-uroot- then in the MySQL consolemysql> CREATE DATABASE openfire;
5. Service Deployment

Go to the Web page:

xx.xx.xx.xx:9090

Then you'll see some references guiding your to install. (Choose the outer base database, not the default database. Here MySQL preferred)

Next and Next = then finish.

6. Plugin installation:monitoring Service

Go to the Web page:

xx.xx.xx.xx:9090

Click on the Green "Cross" button on the right.

7. Plugin Settings

Toggle the "Archive one-to-one chats" and/or "Archive Group chats"

8. An instant conversation

(P.S. You'll need to add some one before the conversation one-to-one, of course)

In the case, create a user here:

Then open the client software!!!

' Spark ' sudo sh /path/to/spark/resources/startup. SH &

Then you'll see the user interface as this:

Login!!!

Do the same thing for another account. e.g. another account: ' admin '

Send messages between different clients

From the Page:server, archiving-A, Search archive, we can see their talking record. wow! What a conversation:P

9. Data Tasting

We is not a satisfied with a just reading some thing from Web page.

Here feel what we got!

Mysql-uroot-p# input your passwordmysql> use openfire;mysqlSelect * from ofuser; " something dumped out " MySQL Select * from ofmessagearchive; " Other dumped out "

notice:the table ' ofmessagearchive ' is created because of the enabling of the plugin ' monitor archiving '

Let's see what we got!!

For User:

For the conversation record (archived)

yeah! We see that!

"Next Big":

Client B, middleware, client A

Client A, client B, middleware

Domestic server, middleware, client A

Domestic server, middleware, client A, client B, client C, ...

Domestic server, middleware, client A

Happy hacking!

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.