Install Ejabberd2 and configure MySQL for its database

Source: Internet
Author: User

Previously used OpenFire as a server, but OpenFire cluster support is not very good, so instead of ejabberd, because it is developed in Erlang language, its concurrency rate and distributed functions are very strong, here I record my installation and configuration process.

1. Installation is needless to say, to its official website to download the installation package. My system is Mac OS, so I only describe the installation on Mac OS. After downloading the installation package, click Install directly. After installation will be generated in the/applications directory Ejabberd directory, because I downloaded the Ejabberd-2.1.11, so the installation directory is:/applications/ejabberd-2.1.11/

2. Configure support for MySQL, open/applications/ejabberd-2.1.11/conf/ejabberd.cfg and make the following changes

A. Notes

Internal}.

After the comment is

%%{auth_method, internal}.

B. Uncomment the sentence

{Auth_method, ODBC}.

C. Creating a Database Ejabberd

D. Create the table, if your MySQL is 5.5.3 before, then edit Mysql.sql, set Table_type=innodb, change to set Default_storage_engine=innodb;

Mysql.sql



D. Configuring MySQL

Server:%%{odbc_server, {mysql, "localhost", "Ejabberd", "root", "Mysqlpassword"}}.

E. Configuring the module, plus a _ODBC

{MOD_LAST_ODBC,     []},{mod_offline_odbc,  []},{mod_privacy_odbc,  []},{mod_private_odbc,  []},{mod_pubsub_odbc, [   % Requires Mod_caps ... {MOD_ROSTER_ODBC,   []},{mod_vcard_odbc,    []},



3. Turn on Ejabberd,

cd/applications/ejabberd-2.1.11/lib./Start

Install Ejabberd2 and configure MySQL for its database

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.