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

后端 未结 2 403
半阙折子戏
半阙折子戏 2021-01-27 04: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 sur

相关标签:
2条回答
  • 2021-01-27 04:24

    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.

    0 讨论(0)
  • 2021-01-27 04:34

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

    0 讨论(0)
提交回复
热议问题