ejabberd 服务器 mod_archive 模块

发布于 2024-10-02 20:29:05 字数 1459 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梅倚清风 2024-10-09 20:29:05

所有关于 Ejabberd 中 mod_archive 的互联网教程都不完整或非常混乱。或者也许已经老了。所以我的问题是我正在使用 Ubuntu 12.04 服务器 LTS 和 Mysql。我做了所有博客中解释的所有事情。

因此,要安装 mod_archive,我需要执行以下操作:

典型:

svn co https://svn.process-one.net/ejabberd-modules
cd ejabberd-modules/mod_archive/trunk
./build.sh
cp ebin/*modules in EJABBERD

并配置 /etc/ejabberd.cfg

但使用此方法 EJABBERD 不起作用。

所以我发现我们需要编译任何网站中都没有解释的其他模块。该模块名为 CONN_MYSQL

,我们可以在下载的相同 ejabber-modules 中获取该模块。所以在 SVN 中(https://svn.process-one.net/ejabberd-modules )还有

cd ejabberd-modules/mysql/trunk
./build.sh
cp ebin/*modules in EJABBERD

工作......

我需要很多时间来发现这一点。

我无法在 ejabberd.cfg 中使用此行配置: {odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"} 因为应用程序崩溃并表示:

=ERROR REPORT==== 2012-11-28 18:01:08 ===
E(<0.437.0>:mod_archive_odbc:867) : should_store_jid failed: {xmlelement,
                                                              "error",
                                                              [{"code","500"},
                                                               {"type",
                                                                "wait"}],
                                                              [{xmlelement,
                                                                "internal-server-error",
                                                                [{"xmlns",
                                                                  "urn:ietf:params:xml:ns:xmpp-stanzas"}],
                                                                []}]}

所以我在 ejabberd 中使用此行.cfg:
{odbc_server,{mysql,“服务器”,“数据库”,“用户名”,“密码”}}。

并将这一行放入模块配置中:

  {mod_archive_odbc, [{database_type, "mysql"}, {default_auto_save, true}, {enforce_default_auto_save, true}]},

现在可以了!

我不记得我是否

在 Emakefile 中使用 trunkbranches/ejabberd-2.0.x 。您可以尝试其中一种,如果不起作用,您可以尝试另一种。

啊!并记住使用以下命令进行编译

./configure --enable-odbc the ejabberd source code. 

您可以将其放入

wget http://www.process-one.net/en/ejabberd/ejabberd/2.1.11/ejabberd-2.1.11.tgz

也许需要此软件包:

apt-get install iodbc libmyodbc

All internet tutorials about mod_archive in Ejabberd are incomplete or very caotics. Or maybe are old. So my problem is I am using Ubuntu 12.04 server LTS with Mysql. And I did all the things that are explained in all blogs.

So to install mod_archive I need to do this:

The typical:

svn co https://svn.process-one.net/ejabberd-modules
cd ejabberd-modules/mod_archive/trunk
./build.sh
cp ebin/*modules in EJABBERD

and configure /etc/ejabberd.cfg

but with this methods EJABBERD does not work.

So I discover that we need to compile other MODULE that are not explained in any site. The module is called CONN_MYSQL

And we can get in the same ejabber-modules dowloaded. So in SVN (https://svn.process-one.net/ejabberd-modules) there are

cd ejabberd-modules/mysql/trunk
./build.sh
cp ebin/*modules in EJABBERD

And work.....

I need a lot of hours to discover this.

I can not use this line configuration in ejabberd.cfg: {odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"} because aplication crashes and says this:

=ERROR REPORT==== 2012-11-28 18:01:08 ===
E(<0.437.0>:mod_archive_odbc:867) : should_store_jid failed: {xmlelement,
                                                              "error",
                                                              [{"code","500"},
                                                               {"type",
                                                                "wait"}],
                                                              [{xmlelement,
                                                                "internal-server-error",
                                                                [{"xmlns",
                                                                  "urn:ietf:params:xml:ns:xmpp-stanzas"}],
                                                                []}]}

So I use this line in ejabberd.cfg:
{odbc_server, {mysql, "server", "database", "username", "password"}}.

and this line into the modules configuration:

  {mod_archive_odbc, [{database_type, "mysql"}, {default_auto_save, true}, {enforce_default_auto_save, true}]},

So now works!

I don't remmember if i use

trunk or branches/ejabberd-2.0.x in Emakefile . You could try one and if not works you could try the other.

Ah! and remmember to compile with

./configure --enable-odbc the ejabberd source code. 

You can get this in

wget http://www.process-one.net/en/ejabberd/ejabberd/2.1.11/ejabberd-2.1.11.tgz

maybe it is necessary this packages:

apt-get install iodbc libmyodbc
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文