Ejabberd模块安装工具

从Ejabberd版本15.02.77 (aa1250a)起,支持通过ejabberdctl命令行工具安装第三方模块

  • 如果你之前从源码便已过Ejabberd,并且是从源码安装的, 请首先重新执行如下命令:
1
./autogen.sh
./configure --enable-mysql \
    --enable-iconv \
    --enable-elixir \
    --enable-tools \
    --enable-nif \
    --enable-odbc \
    --enable-zlib \
    --enable-json
make
make install
  • 更新模块列表
1
ejabberdctl modules_update_specs
  • 列出可用的模块
1
root@xmpp:~# ejabberdctl modules_available
atom_pubsub         Provides access to all PEP nodes via an AtomPub interface
ejabberd_auth_http  Authentication via HTTP request
ircd                IRC server frontend to ejabberd
mod_admin_extra     Additional ejabberd commands
mod_archive         Supports almost all the XEP-0136 version 0.6 except otr
mod_cron            Execute scheduled commands
mod_log_chat        Logging chat messages in text files
mod_logsession      Log session connections to file
mod_logxml          Log XMPP packets to XML file
mod_mam	Message     Archive Management (XEP-0313)
mod_message_log     Log one line per message transmission in text file
mod_muc_admin       Administrative features for MUC
mod_muc_log_http    Serve MUC logs on the web
mod_multicast       Extended Stanza Addressing (XEP-0033) support
mod_openid          Transform the Jabber Server in an openid provider
mod_post_log        Logs messages to an HTTP API
mod_profile         User Profile (XEP-0154) in Mnesia table
mod_rest            HTTP interface to POST stanzas into ejabberd
mod_s2s_log         Log all s2s connections in a file
mod_shcommands      Execute shell commands
mod_statsdx         Calculates and gathers statistics actively
mod_webpresence     Publish user presence information in the web
  • 安装一个模块
1
ejabberdctl module_install mod_cron

该命令从ejabberd-contrib仓库安装mod_cron模块

$HOME/.ejabberd-modules/mod_cron/conf/mod_cron.yml

原文

https://blog.process-one.net/easy-installer-and-structure-for-ejabberd-contributed-modules