Ejabberd sbin/ejabberdctl start(没有这样的文件或目录)

Joh*_*ohn 1 ejabberd

当我安装Ejabberd时,它给出了一个错误,说它没有成功安装.但后来我有文件夹my-ejabberd,其中包含所有文件夹.

我不确定是否100%安装,但当我尝试启动服务器时,使用命令行sbin/ejabberdctl start,它说没有这样的文件或目录.我在Mac OS 10.8.5上运行.

不确定是什么问题.有任何想法吗?

编辑

这是终端的错误

bin/ejabberdctl:第24行:getent:未找到命令/ Users/clark/my-ejabberd/bin/erl:第35行:/ Applications/my-ejabberd/bin/erlexec:没有这样的文件或目录

编辑:

在此输入图像描述

Yas*_*nth 7

如果您已经使用源代码安装了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
Run Code Online (Sandbox Code Playgroud)

如果已安装二进制安装程序,则会看到ejabberdctlbin文件夹.而且你也看到了开始,停止和其他一些命令.如果你这样做,那么按照

$ 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
Run Code Online (Sandbox Code Playgroud)

如果您看到节点正在启动,则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
Run Code Online (Sandbox Code Playgroud)

然后打开ejabberd配置文件(ejabberd.yml)并在admin下添加用户名:

acl:  
  admin:
    - "username": "localhost"
Run Code Online (Sandbox Code Playgroud)

现在重新启动服务器或停止并启动服务器并打开管理面板.提供用户名和密码,然后您可以访问管理面板.

在此输入图像描述