Openfire+spark build an internal chat system on Linux

Source: Internet
Author: User

First, the experimental environment

Ubuntu server14.04

openfire:http://www.igniterealtime.org/downloads/index.jsp

spark:http://www.igniterealtime.org/downloads/index.jsp

JDK: Requires more than 1.7

Second, the installation process

1, first before installing OpenFire, first ensure that your system has been updated to the latest. To avoid any subsequent unnecessary trouble.

$ sudo apt-get update

$ sudo apt-get upgrade

2. Install the latest version of Oracle JRE/JDK, using the PPA (Personal package Archieve) WEBUPD8 method.

$ sudo apt-get install python-software-properties

$ sudo add-apt-repository Ppa:webupd8team/java

$ sudo apt-get update

If you are using OPENJDK, remove it first to avoid any conflicts

$ sudo apt-get remove--purge openjdk*

Then use the following command to install Oracle Java 8

$ sudo apt-get install Oracle-java8-installer

3. Download and install the Openfire_4.2.3_all.deb, and use the dpkg command to install the Openfire_4.2.3_all.deb

$ wget Http://download.igniterealtime.org/openfire/openfire_4.2.3_all.deb

$ sudo dpkg-i openfire_4.2.3_all.deb

$ sudo service openfire start

  

4. Configure the relevant ports for the OpenFire. You need to install a firewall and allow some openfire ports to pass. Use the UFW command to configure.

sudo ufw allow 9090/tcpsudo UFW allow 9091/tcpsudo UFW allow 5222/tcpsudo UFW allow 7777/tcpsudo UFW allow 7443/tcpsudo uf W allow 7070/tcpsudo UFW allow 3478/tcpsudo UFW allow 3479/tcp

After the above configuration, the initial installation steps of OpenFire have been completed. Next, we continue to configure through a Web browser.

7, configure the OpenFire server. Configuring the OpenFire server is fairly straightforward and can be done in just a few steps. Here's how to configure OpenFire. You first open the browser on your computer and open the following address.

http://192.168.159.128:9090/index.jsp
After the entry has been the default, about the database selection, I choose the own database, you can choose MySQL and other databases (but the premise needs to install the required database before this step)
To this, OpenFire has been installed and then started to install the client's spark

8. Install Spark (Windows edition)

It is similar to installing QQ software (specifically not introduced)

After the installation is complete, open the Spark client. Configure the following information in the Advanced options (the domain name is your server hostname or IP address)

  

Click the OK button. Then enter:

To this spark has been installed complete.

PS: On your own virtual machine to build an external network can not access, this requires your router to support port forwarding, or direct DMZ settings. The communication can be achieved by building it on a remote server.

Openfire+spark build an internal chat system on Linux

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.