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