1. Ubuntu has ejabberd in the source and can be installed directly through the Apt-get
Install Ejabberd
2. After the installation is complete, you can access the background page via the browser, the default port is 5280
http:// server address: 5280/admin
3. This time, you need to provide a username and password, you can register the user by command Ejabberdctl,
Ejabberdctl Register admin localhost password
This time the default domain name is localhost, you can modify the domain name by modifying the configuration file /etc/ejabberd/ejabberd.cfg
percent "admin""localhost"}. Percent hostname{hosts, ["localhost"]}.
4. You can then access the backend via the above address.
If you are prompted to add a user
Failed RPC connection to the node [email protected]: nodedown
It is possible that the Erlang component is missing and the service can be restarted after installation.
CD $HOME/Downloadswget-O erlang.deb http://Packages.erlang-solutions.com/erlang-solutions_1.0_all.debsudoDpkg-I erlang.debRMErlang.debsudo su-C'echo "Deb https://apt.jabber.at trusty Ejabberd" >/etc/apt/sources.list.d/jabber.at.list'wget-qo-https://Apt.jabber.at/gpg-key | sudo apt-key add-sudoapt-Get updatesudoApt-get-yInstallErlang Ejabberd
Ubuntu Install ejabberd XMPP server