Node names in Erlang (ejabberd at a given machine, default localhost) have nothing to do with Unix users (admin on machine). The node name define by default for ejabberd is just a string name.
使用用户名:admin@mydomain 和密码:adminpassword 登录 Web 管理界面
同样,正如其他人所说,您使用的 Linux 帐户与 ejabberd 节点名称或 Web 管理凭据无关。
The default ejabberd installation uses 'ejabberd' as user part and 'localhost' as domain part. So if you don't explicitly change /etc/ejabberd/ejabberdctl.cfg, ejabberd will use 'ejabberd@localhost' as "short name" for the node.
The short name is indicated by the option "-sname" in the erlang command.
If you want to change this, you can edit ERLANG_NODE inside ejabberdctl.cfg (the default configuration file has useful comments before that parameter).
In order to connect to the web admin interface, you need to:
Register an admin account (e.g. 'ejabberdctl register admin mydomain adminpassword')
Grant admin rights to that user for that virtual host (i.e. inside ejabberd.cfg you should have something like: {acl, admin, {user, "admin", "mydomain"}}.
Login into the web admin interface with username: admin@mydomain and password: adminpassword
Again, as stated by others as well, the linux account you're using is not relevant for either the ejabberd node name or web admin credentials.
ejabberdctl defaults node names to 'localhost'. You can override this by either editing your installed ejabberdctl's NODE variable or calling it with a '--node $nodename' argument.
发布评论
评论(3)
Erlang 中的节点名称(给定机器上的 ejabberd,默认 localhost)与 Unix 用户(机器上的管理员)无关。
ejabberd 默认定义的节点名称只是一个字符串名称。
Node names in Erlang (ejabberd at a given machine, default localhost) have nothing to do with Unix users (admin on machine).
The node name define by default for ejabberd is just a string name.
默认的 ejabberd 安装使用“ejabberd”作为用户部分,使用“localhost”作为域部分。
因此,如果您没有显式更改 /etc/ejabberd/ejabberdctl.cfg,ejabberd 将使用“ejabberd@localhost”作为节点的“短名称”。
短名称由 erlang 命令中的选项“-sname”指示。
如果您想更改此设置,可以在 ejabberdctl.cfg 中编辑 ERLANG_NODE(默认配置文件在该参数之前有有用的注释)。
为了连接到 Web 管理界面,您需要:
{acl,管理员,{用户,“管理员”,“mydomain”}}。
同样,正如其他人所说,您使用的 Linux 帐户与 ejabberd 节点名称或 Web 管理凭据无关。
The default ejabberd installation uses 'ejabberd' as user part and 'localhost' as domain part.
So if you don't explicitly change /etc/ejabberd/ejabberdctl.cfg, ejabberd will use 'ejabberd@localhost' as "short name" for the node.
The short name is indicated by the option "-sname" in the erlang command.
If you want to change this, you can edit ERLANG_NODE inside ejabberdctl.cfg (the default configuration file has useful comments before that parameter).
In order to connect to the web admin interface, you need to:
{acl, admin, {user, "admin", "mydomain"}}.
Again, as stated by others as well, the linux account you're using is not relevant for either the ejabberd node name or web admin credentials.
ejabberdctl 默认节点名称为“localhost”。 您可以通过编辑安装的 ejabberdctl 的 NODE 变量或使用“--node $nodename”参数调用它来覆盖它。
ejabberdctl defaults node names to 'localhost'. You can override this by either editing your installed ejabberdctl's NODE variable or calling it with a '--node $nodename' argument.