Ejabberd sbin / ejabberdctl start(没有这样的文件或目录) [英] Ejabberd sbin/ejabberdctl start(No such file or directory)

查看:74
本文介绍了Ejabberd sbin / ejabberdctl start(没有这样的文件或目录)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我安装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:没有此类文件或目录



编辑:



解决方案

如果已使用


When i was installing Ejabberd, it gave an error saying it wasnt installed successfully. But then i have the folder my-ejabberd with all the folders in it.

I am not sure if thats 100% installed, but when i try to start up the server, with the command line sbin/ejabberdctl start, it says No such file or directory. I am running on Mac OS 10.8.5.

Not sure what the problem is. Any Ideas?

Edit

This is the error from Terminal

bin/ejabberdctl: line 24: getent: command not found /Users/clark/my-ejabberd/bin/erl: line 35: /Applications/my-ejabberd/bin/erlexec: No such file or directory

Edit:

解决方案

If you have installed the ejabberd with source code then ejabberdctl will be sbin folder. If installed from source code, follow this:

$ 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

If you have installed with binary installer, then you will see the ejabberdctl in bin folder. And also you see start, stop and some other commands. If you did this, then follow

$ 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

If you see the node is starting, then the ejabberd is running successfully. If you want you can check http://localhost:5280/admin for the ejabberd admin panel interface. To access this admin panel you need to register a user and give admin access in the ejabberd configuration file as:

// If installed from source code
$ sbin/ejabberdctl register username localhost password

// If installed from binary installer
$ ./ejabberdctl register username localhost password

Then open the ejabberd configuration file (ejabberd.yml) and add username under the admin as:

acl:  
  admin:
    - "username": "localhost"

Now restart the server or stop and start the server and open the admin panel. Give username and password then you can access the admin panel.

这篇关于Ejabberd sbin / ejabberdctl start(没有这样的文件或目录)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆