ejabberd节点

发布于 2024-07-14 22:42:34 字数 1459 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

掌心的温暖 2024-07-21 22:42:34

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.

浅笑依然 2024-07-21 22:42:34

默认的 ejabberd 安装使用“ejabberd”作为用户部分,使用“localhost”作为域部分。
因此,如果您没有显式更改 /etc/ejabberd/ejabberdctl.cfg,ejabberd 将使用“ejabberd@localhost”作为节点的“短名称”。

短名称由 erlang 命令中的选项“-sname”指示。

如果您想更改此设置,可以在 ejabberdctl.cfg 中编辑 ERLANG_NODE(默认配置文件在该参数之前有有用的注释)。

为了连接到 Web 管理界面,您需要:

  • 注册一个管理员帐户(例如“ejabberdctl register admin mydomain adminpassword”)
  • 向该用户授予该虚拟主机的管理员权限(即在 ejabberd.cfg 中您应该具有如下内容:
    {acl,管理员,{用户,“管理员”,“mydomain”}}。
  • 使用用户名: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.

喵星人汪星人 2024-07-21 22:42:34

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文