CentOS 6 Deployment OpenFire extended Platform Chat feature.

Source: Internet
Author: User

OpenFire is a good thing. This is very much the case with a limited team size. Of course, you can also develop chat with node. js.

There are a few places to watch out for Linux.

    1. Because the CentOS 6 I chose is 64-bit, but the OpenFire is 32-bit, the 32-bit C + + runtime must be installed. If the server is able to access the extranet, then execute

    2. openfire 是java 开发的所以需要安装java 注意你的版本。

    3. 接下来按照顺序安装

    4. http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/index.html 这个是原版地址

OpenFire version compatible
# yum Install libstdc++.i686
Java Installation

The installed CentOS will bring openjdk, with the command java-version, will have the following information:

Java Version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-bit Server VM (build 1.6.0-b09, Mixed mode)

It is best to uninstall the OPENJDK before installing Sun's JDK.

See Rpm-qa First | grep java

Http://jingyan.baidu.com/article/4853e1e51d0c101909f72607.html or look at this.

View the Java installation package in the Yum Library.

Input: Yum-y list java*.

Install the Java environment using Yum.

Input: yum-y install java-1.7.0-openjdk*, take java-1.7.0 in the Yum library as an example.

When the results are displayed as complete! The installation is complete.

View the Java version information you just installed.

Input: Java-version to view Java version;


openfire Download and install
See here Download wget http://download.igniterealtime.org/openfire/openfire-3.6.4-1.i386.rpm

OpenFire program installation starts
# RPM-IVH openfire-3.9.3-1.i386.rpm

Upload the OpenFire installation program. It is recommended to use the OPENFIRE-3.9.3-1.I386.RPM installation package, which has its own JRE, without additional configuration. Perform:

Preparing ########################################### [100%]1:openfire ######################################### # # [100%]3. Start Service OpenFire start

OpenFire start OpenFire in Linux/unix

If you is running on a red hat or red hat like system (CentOS, Fedora, etc), we recommend using the RPM as it contains so  Me custom handling of the standard Red Hat like environment. Assuming that you had used the RPM, you can start and stop openfire using The/etc/init.d/openfire script.

#/etc/init.d/openfireusage/etc/init.d/openfire {start|stop|restart|status|condrestart|reload}#/etc/init.d/ OpenFire startstarting OpenFire:

Success will show up like this.

Starting OpenFire:

If you were running on a different Linux/unix varient, and/or you had used the. tar.gz ' installer ', you can start and stop OpenFire using the Bin/openfire script in your OpenFire installation:#./openfire
Usage:./openfire {Start|stop}
#./openfire Start

A lot of people may see this here, but it's not over yet. Please keep looking.

Port-Mapped extranet access

Server is remote with fixed IP and this openfire is installed by default http://127.0.0.1:9090 can use curl detection or port detection. This machine can not be opened outside the network.

So you need to map on the outside network.

To set up a proxy in Apache:
Namevirtualhost xxx.xxxx.xxx:80
<virtualhost *:80 >
ServerAdmin [email protected]
ServerName openfire.baidu.com
Errorlog Logs/rsa-error.log
Customlog Logs/rsa-access.log Common
proxypass/http://127.0.0.1:9090/
proxypassreverse/http://127.0.0.1:9090/
</VirtualHost>

This can be opened with an extranet domain name.

CentOS 6 Deployment OpenFire extended Platform Chat feature.

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.