Ejabberd sbin/ejabberdctl start(No such file or directory)

泄露秘密 提交于 2019-12-11 14:15:01

问题


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:


回答1:


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.




回答2:


In my particular case installing with .dmg i found using find / -name ejabberdctl in terminal and result /Applications/ejabberd.xx.x/bin/ejabberdctl



来源:https://stackoverflow.com/questions/32288866/ejabberd-sbin-ejabberdctl-startno-such-file-or-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!