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

时间:2015-08-29 17:30:03

标签: 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:没有这样的文件或目录

编辑:

enter image description here

2 个答案:

答案 0 :(得分:6)

如果您已使用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

enter image description here

答案 1 :(得分:0)

在我的特殊情况下使用.dmg进行安装我在终端使用find / -name ejabberdctl找到了结果/Applications/ejabberd.xx.x/bin/ejabberdctl