Ejabberd sbin/ejabberdctl start(没有那个文件或目录)
Ejabberd sbin/ejabberdctl start(No such file or directory)
当我安装 Ejabberd 时,它给出了一个错误,说它没有安装成功。但后来我有了文件夹 my-ejabberd,其中包含所有文件夹。
我不确定是否已 100% 安装,但是当我尝试启动服务器时,使用命令行 sbin/ejabberdctl 启动时,它显示没有这样的文件或目录。我 运行 Mac OS 10.8.5。
不确定是什么问题。有任何想法吗?
编辑
这是来自终端的错误
bin/ejabberdctl:第 24 行:getent:找不到命令
/Users/clark/my-ejabberd/bin/erl:第 35 行:/Applications/my-ejabberd/bin/erlexec:没有那个文件或目录
编辑:
如果你用 source code 安装了 ejabberd,那么 ejabberdctl
将是 sbin 文件夹。如果从源代码安装,请遵循以下步骤:
$ cd /path/to/my-ejabberd
$ sbin/ejabberdctl start
$ sbin/ejabberdctl status
The node ejabberd@localhost is started with status: started
ejabberd 15.06.21 is running in that node
如果您安装了 binary installer,那么您将在 bin 文件夹中看到 ejabberdctl
。您还会看到启动、停止和其他一些命令。如果您这样做了,请关注
$ cd /path/to/my-ejabberd
$ cd bin
$ ./ejabberdctl start
$ ./ejabberdctl status
The node ejabberd@localhost is started with status: started
ejabberd 15.06.21 is running in that node
如果您看到节点正在启动,则 ejabberd 运行 成功。如果需要,可以检查 http://localhost:5280/admin 以获得 ejabberd 管理面板界面。要访问此管理面板,您需要注册一个用户并在 ejabberd 配置文件中授予管理员访问权限:
// If installed from source code
$ sbin/ejabberdctl register username localhost password
// If installed from binary installer
$ ./ejabberdctl register username localhost password
然后打开ejabberd配置文件(ejabberd.yml),在admin下添加用户名为:
acl:
admin:
- "username": "localhost"
现在重新启动服务器或停止并启动服务器并打开管理面板。提供用户名和密码,然后您可以访问 admin panel.
在我使用 .dmg 安装的特殊情况下,我发现在终端中使用了 find / -name ejabberdctl
,结果为 /Applications/ejabberd.xx.x/bin/ejabberdctl
当我安装 Ejabberd 时,它给出了一个错误,说它没有安装成功。但后来我有了文件夹 my-ejabberd,其中包含所有文件夹。
我不确定是否已 100% 安装,但是当我尝试启动服务器时,使用命令行 sbin/ejabberdctl 启动时,它显示没有这样的文件或目录。我 运行 Mac OS 10.8.5。
不确定是什么问题。有任何想法吗?
编辑
这是来自终端的错误
bin/ejabberdctl:第 24 行:getent:找不到命令 /Users/clark/my-ejabberd/bin/erl:第 35 行:/Applications/my-ejabberd/bin/erlexec:没有那个文件或目录
编辑:
如果你用 source code 安装了 ejabberd,那么 ejabberdctl
将是 sbin 文件夹。如果从源代码安装,请遵循以下步骤:
$ cd /path/to/my-ejabberd
$ sbin/ejabberdctl start
$ sbin/ejabberdctl status
The node ejabberd@localhost is started with status: started
ejabberd 15.06.21 is running in that node
如果您安装了 binary installer,那么您将在 bin 文件夹中看到 ejabberdctl
。您还会看到启动、停止和其他一些命令。如果您这样做了,请关注
$ cd /path/to/my-ejabberd
$ cd bin
$ ./ejabberdctl start
$ ./ejabberdctl status
The node ejabberd@localhost is started with status: started
ejabberd 15.06.21 is running in that node
如果您看到节点正在启动,则 ejabberd 运行 成功。如果需要,可以检查 http://localhost:5280/admin 以获得 ejabberd 管理面板界面。要访问此管理面板,您需要注册一个用户并在 ejabberd 配置文件中授予管理员访问权限:
// If installed from source code
$ sbin/ejabberdctl register username localhost password
// If installed from binary installer
$ ./ejabberdctl register username localhost password
然后打开ejabberd配置文件(ejabberd.yml),在admin下添加用户名为:
acl:
admin:
- "username": "localhost"
现在重新启动服务器或停止并启动服务器并打开管理面板。提供用户名和密码,然后您可以访问 admin panel.
在我使用 .dmg 安装的特殊情况下,我发现在终端中使用了 find / -name ejabberdctl
,结果为 /Applications/ejabberd.xx.x/bin/ejabberdctl