比较来自世界各地的卖家的域名和 IT 服务价格

语法错误为新用户提供管理员权限 ejabberd.ym

我试图安装的最后几个小时

Ejabberd

服务器。 我建造了edzhabberd.

来自来源

因为存储库中的包 ubuntu 包含错误。 无论如何大会之后 ejabberd 来自源代码我加了我的

FQDN

"s1.noureldin.local

"在我的文件中。 /etc/ejabberd/ejabberd.yml.

.
.
## - "example.org"
##
hosts:
- "localhost"
- "s1.noureldin.local"
##
## route_subdomains: Delegate subdomains to other XMPP servers.
.
.

然后我创造了

新的用户

:

ejabberdctl register admin1 s1.noureldin.local P@s5W0rd

然后我试图连接到我的服务器 xmpp, 和他

工作

!

现在

问题

我正在尝试的时候

提供新的用户管理员权限

, ejabberd 不再可以启动和

我总是在日志中获得一个语法错误

:

2016-07-12 12:00:10.733 [info] <0.7.0> Application lager started on node ejabberd@localhost
2016-07-12 12:00:10.977 [info] <0.7.0> Application crypto started on node ejabberd@localhost
2016-07-12 12:00:11.022 [info] <0.7.0> Application sasl started on node ejabberd@localhost
2016-07-12 12:00:11.084 [info] <0.7.0> Application asn1 started on node ejabberd@localhost
2016-07-12 12:00:11.084 [info] <0.7.0> Application public_key started on node ejabberd@localhost
2016-07-12 12:00:11.146 [info] <0.7.0> Application ssl started on node ejabberd@localhost
2016-07-12 12:00:11.171 [info] <0.7.0> Application fast_yaml started on node ejabberd@localhost
2016-07-12 12:00:11.198 [info] <0.7.0> Application fast_tls started on node ejabberd@localhost
2016-07-12 12:00:11.219 [info] <0.7.0> Application fast_xml started on node ejabberd@localhost
2016-07-12 12:00:11.231 [info] <0.7.0> Application stringprep started on node ejabberd@localhost
2016-07-12 12:00:11.245 [info] <0.7.0> Application cache_tab started on node ejabberd@localhost
2016-07-12 12:00:11.687 [info] <0.7.0> Application mnesia started on node ejabberd@localhost
2016-07-12 12:00:14.902 [info] <0.7.0> Application inets started on node ejabberd@localhost
2016-07-12 12:00:14.904 [error] <0.37.0>@ejabberd_config:get_plain_terms_file:257 Cannot load //etc/ejabberd/ejabberd.yml: Syntax error on line 423 at position 3: did not find expected key

这是我的 ejabberd.yml, 您可以看到我尝试的所有语法,但不成功:

.
.
.
max_fsm_queue: 1000

###. ====================
###' ACCESS CONTROL LISTS
acl:
##
## The 'admin' ACL grants administrative privileges to XMPP accounts.
## You can put here as many accounts as you want.
##
admin:
user:
- "admin1@s1.noureldin.local"
######## I TRIED THESE AS WELL ########
## - "admin1":"s1.noureldin.local"
## - "admin1@s1.noureldin.local"
##
## user: - "admin1@s1.noureldin.local"
## - user: "admin1@s1.noureldin.local"

## Blocked users
##
## blocked:
## user:
## - "baduser@example.org"
## - "test"

## Local users: don't modify this.
##
local:
user_regexp: ""

##
## More examples of ACLs
##
## jabberorg:
.
.
.

当我推荐这些行时,它再次运行:

admin:
user:
- "admin1@s1.noureldin.local"

有人可以帮我解决吗? 我正在寻找互联网和 ejabberd doc, 所有人都使用与我相同的语法,但他与他们一起工作。

先感谢您。
已邀请:

君笑尘

赞同来自:

好的,我发现了一个错误。

ejabberd.yml

文件

对空间的敏感性

!

和每一个人

sub config 必须比他的父母更多的空间

, 所以我的配置将是:

acl:
##
## The 'admin' ACL grants administrative privileges to XMPP accounts.
## You can put here as many accounts as you want.
##
admin:
user:
- "admin1@s1.noureldin.local"
## - "aleksey@localhost"
##
## Blocked users

或更准确:

acl:   
admin:
user:
- "admin1@s1.noureldin.local"

要回复问题请先登录注册