Binary Installers¶
Linux RUN Installer¶
The *.run
binary installer will deploy and configure a full featured ejabberd server and does not require any extra dependencies.
It includes a stripped down version of Erlang.
As such, when using ejabberd installer, you do not need to install Erlang separately.
Those instructions assume installation on localhost
for development purposes.
In this document, when mentioning ejabberd-YY.MM
, we assume YY.MM
is the release number, for example 18.01.
Installation using the *.run
binary installer:
-
Go to ejabberd GitHub Releases.
-
Download the
run
package for your architecture -
Right-click on the downloaded file and select "Properties", click on the "Permissions" tab and tick the box that says "Allow executing file as program". Alternatively, you can set the installer as executable using the command line:
-
If the installer runs as superuser (by
root
or usingsudo
), it installs ejabberd binaries in/opt/ejabberd-XX.YY/
; installs your configuration, Mnesia database and logs in/opt/ejabberd/
, and setups an ejabberd service unit insystemd
: -
If the installer runs as a regular user, it asks the base path where ejabberd should be installed. In that case, the ejabberd service unit is not set in
systemd
, andsystemctl
cannot be used to start ejabberd; start it manually. -
After successful installation by root, ejabberd is automatically started. Check its status with
-
Now that ejabberd is installed and running with the default configuration, it's time to do some basic setup: edit
/opt/ejabberd/conf/ejabberd.yml
and setup in thehosts
option the domain that you want ejabberd to serve. By default it's set to the name of your computer on the local network. -
Restart ejabberd completely using systemctl, or using ejabberdctl, or simply tell it to reload the configuration file:
-
Quite probably you will want to register an account and grant it admin rights, please check Next Steps: Administration Account.
-
Now you can go to the web dashboard at
http://localhost:5280/admin/
and fill the username field with the full account JID, for exampleadmin@domain
(oradmin@localhost
as above). Then fill the password field with that account'spassword
. The next step is to get to know how to configure ejabberd. -
If something goes wrong during the installation and you would like to start from scratch, you will find the steps to uninstall in the file
/opt/ejabberd-22.05/uninstall.txt
.
Linux DEB and RPM Installers¶
ProcessOne provides DEB and RPM all-in-one binary installers with the same content
that the *.run
binary installer mentioned in the previous section.
Those are self-sufficient packages that contain a minimal Erlang distribution, this ensures that it does not interfere with your existing Erlang version and is also a good way to make sure ejabberd will run with the latest Erlang version.
Those packages install ejabberd in /opt/ejabberd-XX.YY/
.
Your configuration, Mnesia database and logs are available in /opt/ejabberd/
.
You can download directly the DEB and RPM packages from ejabberd GitHub Releases.
If you prefer, you can also get those packages from our official ejabberd packages repository.