Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 我如何在ejabberd中配置muc。一对一聊天效果很好_Mysql_Ejabberd - Fatal编程技术网

Mysql 我如何在ejabberd中配置muc。一对一聊天效果很好

Mysql 我如何在ejabberd中配置muc。一对一聊天效果很好,mysql,ejabberd,Mysql,Ejabberd,我想知道如何在ejabberd中设置muc并将数据存储在mysql中。一对一聊天功能运行良好,并存储在mysql数据库中。是否需要进行任何设置以启用fro muc并将数据存储在mysql中 ## This rule allows access only for local users: local: - allow: local ## Only non-blocked users can use c2s connections: c2s: - deny: bloc

我想知道如何在ejabberd中设置muc并将数据存储在mysql中。一对一聊天功能运行良好,并存储在mysql数据库中。是否需要进行任何设置以启用fro muc并将数据存储在mysql中

  ## This rule allows access only for local users:
  local:
    - allow: local
  ## Only non-blocked users can use c2s connections:
  c2s:
    - deny: blocked
    - allow
  ## Only admins can send announcement messages:
  announce:
    - allow: admin
  ## Only admins can use the configuration interface:
  configure:
    - allow: admin
  ## Only accounts of the local ejabberd server can create rooms:
  muc_create:
    - allow: all
  ## Only accounts on the local ejabberd server can create Pubsub nodes:
  pubsub_createnode:
    - allow: local
  ## In-band registration allows registration of any possible username.
  ## To disable in-band registration, replace 'allow' with 'deny'.
  register:
    - allow: all
  ## Only allow to register from localhost
  trusted_network:

谢谢

要将ejabberd配置为支持多用户聊天,您需要启用
mod_muc
模块。ejabberd文档中对此进行了描述:


如您所见,模块支持一个
db_type
参数来指示它使用您配置的后端

粘贴的配置是配置文件中不相关的随机片段,与mod_muc或MySQL数据库配置无关。