Install EMQX on Ubuntu
This page guides you on installing and starting EMQX on the Ubuntu system.
Supported versions:
- Ubuntu 24.04
- Ubuntu 22.04
- Ubuntu 20.04
- Ubuntu 18.04
Install with Apt Source
EMQX supports installing with Apt source to provide our users with a convenient and reliable way to manage EMQX installation and updates. Here is how to install EMQX with Apt source:
Download the EMQX repository:
bashcurl -s https://assets.emqx.com/scripts/install-emqx-deb.sh | sudo bash
Install EMQX:
bashsudo apt-get install emqx
Start EMQX:
bashsudo systemctl start emqx
Install with Package
EMQX supports installation via deb packages or tar.gz packages. For installation on other supported systems or to try other versions, please visit the EMQX Enterprise download site for installation information.
Install with deb
- Go to the official download page and select the Ubuntu tab.
- Select the latest version
5.8.2
and select thedeb
package according to the required version and CPU architecture in the Package Type dropdown. - Click the link below for downloading. You can also follow the command-line guide steps for downloading and installing.
Start EMQX
Start EMQX as a systemd service.
bash
sudo systemctl start emqx
Uninstall EMQX
To uninstall EMQX, run:
sudo apt remove --purge emqx
Install with tar.gz
- Go to the official download page and select the Ubuntu tab.
- Select the latest version
5.8.2
and select thetar.gz
package according to the required version and CPU architecture in the Package Type dropdown. - Click the link below for downloading. You can also follow the command-line guide steps for downloading and installing.
Start EMQX
After the installation, run the command below to start EMQX.
bash
./emqx/bin/emqx foreground