我的新 ejabberd 安装出了问题。我需要启用 mod xml_rpc,因此我执行以下操作:
I'm uncomment this in my ejabberd.yml file:
## To handle XML-RPC requests that provide admin credentials:
##
## -
## port: 4560
## module: ejabberd_xmlrpc
所以现在看起来像这样
## To handle XML-RPC requests that provide admin credentials:
##
-
port: 4560
module: ejabberd_xmlrpc
但在我的日志中我收到了这些错误并且 ejabberd 无法工作。
2015-02-12 17:16:33.180 [error] <0.37.0>@ejabberd_config:get_plain_terms_file:176 Cannot load /opt/ejabberd-14.12/conf/ejabberd.yml: Syntax error on line 149 at position 5: did not find expected key
2015-02-12 17:18:58.635 [error] <0.37.0>@ejabberd_config:get_plain_terms_file:176 Cannot load /opt/ejabberd-14.12/conf/ejabberd.yml: Syntax error on line 149 at position 5: did not find expected key
有人能帮助我如何启用它吗?
答案1
删除每个未注释行前的空格,这对我来说很有用。