[这些天捣鼓了下ejabberd,准备研究它的代码,做为榜样~ 我这儿用的是1.1.3的代码,而svn上面的代码有些地方做了比较大的改动. 安装很简单 ./configure make && make in
一.安装mysql
二.创建数据库,导入ejabberd.sql
mysql -u root -p
CREATE DATABASE ejabberd;
exit
mysql -u root -p ejabberd < mysql.sql
#https://github.com/processone/ejabberd/blob/master/sql/mysql.sql
三.配置mysql
%%{auth_method, internal}.
{auth_method, odbc}.
%%
%% MySQL server:
%%
{odbc_server, {mysql, "localhost", "ejabberd", "root", "MySqlPassword"}}.
{mod_last_odbc, []},
{mod_offline_odbc, []},
{mod_privacy_odbc, []},
{mod_private_odbc, []},
{mod_pubsub_odbc, [ % requires mod_caps ...
{mod_roster_odbc, []},
{mod_vcard_odbc, []},
http://iohq.net/index.php?title=Building_an_Ejabberd_Server_with_MySql
http://srijan.me/ejabberd-storing-data-in-mysql/
无法正常启动,查看/var/log/ejabberd/ejabberd.log[1. 安装 执行apt-getinstallejabberd,也可登录官网https://www.process-one.net下载软件包安装。2. 启停服务 ejabberdctlrestart/stop/start/stop/status注:有时使用e
ejabberd is configured to use 'mysql', but the following Erlang modules are not installed:
'[mysql, mysql_auth, mysql_conn, mysql_recv]'
http://www.kissthink.com/archive/8293.html
ejabberd msyql driver(自己编译或者直接下载编译好的)
http://stefan-strigler.de/2009/01/14/ejabberd-mysql-drivers-for-debian-and-ubuntu/
编译安装步骤https://www.ejabberd.im/ejabberd-contrib?q=ejabberd-contrib
https://svn.process-one.net/ejabberd-modules/mysql/
顶好文章
https://gist.github.com/jbottigliero/3955492[ 1.环境Ubuntu10.4 2.在两台服务器S1、S2安装ejabberd 在此假设 S1安装ejabberd的node为ejabberd@admintest。 S2安装ejabberd的node为ejabberd@cluste