在 ubuntu 12.04 中为 ejabberd 添加 mod_mam

Add mod_mam for ejabberd in ubuntu 12.04

我已经在 ubuntu 12.04 环境中成功配置了 ejabberd 2.1.10 和 mysql 存储。现在我需要为我的聊天服务器集成 mod_mam 模块。我已经从 url https://svn.process-one.net/ejabberd-modules/ and configured using the steps mentioned here https://www.ejabberd.im/ejabberd-modules 下载了 mysql 模块。但是我在该存储库中找不到 mod_mam 库。

同时,我在我的windows7机器上安装了ejabberd 16.02,发现mod_mam默认是可用的。请为此提供解决方案。

安装最新版本的 ejabberd 服务器将以下行放在 ejabberd.yml-

的模块部分
mod_mam:
    db_type: odbc    ##mnesia|odbc
    default: always   ##always|never|roster
    request_activates_archiving: true       ##true|false
    assume_mam_usage: on_request                ##if_enabled|on_request|never
    cache_size: 1000
    cache_life_time: 3600

for detail configration check here