Debian
This section guides you on installing and starting EMQX on the Debian system.
Supported versions:
- Debian 11
- Debian 10
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:
curl -s https://assets.emqx.com/scripts/install-emqx-deb.sh | sudo bash
Install EMQX:
sudo apt-get install emqx
Start EMQX:
sudo systemctl start emqx
Install with Package
The section below will take Debian 11 as an example to illustrate how to download the latest version of EMQX. For other versions, please visit the EMQX Deployment page (opens new window).
Install with deb
EMQX offers different installation packages for different CPU architectures.
Download emqx-5.1.0-debian11-amd64.deb (opens new window).
wget https://www.emqx.com/en/downloads/broker/5.1.0/emqx-5.1.0-debian11-amd64.deb
Install EMQX.
sudo apt install ./emqx-5.1.0-debian11-amd64.deb
Download emqx-5.1.0-debian11-arm64.deb (opens new window).
wget https://www.emqx.com/en/downloads/broker/5.1.0/emqx-5.1.0-debian11-arm64.deb
Install EMQX.
sudo apt install ./emqx-5.1.0-debian11-arm64.deb
Start EMQX
EMQX offers 3 different options to start EMQX:
To start EMQX directly, run:
$ emqx start
EMQX 5.1.0 is started successfully!
$ emqx_ctl status
Node 'emqx@127.0.0.1' 5.1.0 is started
To start EMQX as a systemd service, run:
sudo systemctl start emqx
To start EMQX as a service, run:
sudo service emqx start
Uninstall EMQX
To uninstall EMQX, run:
sudo apt remove --purge emqx
Install with tar.gz
EMQX offers different installation packages for different CPU architectures.
Download emqx-5.1.0-debian11-amd64.tar.gz (opens new window).
wget https://www.emqx.com/en/downloads/broker/5.1.0/emqx-5.1.0-debian11-amd64.tar.gz
Install EMQX.
mkdir -p emqx && tar -zxvf emqx-5.1.0-debian11-amd64.tar.gz -C emqx
Download emqx-5.1.0-debian11-arm64.tar.gz (opens new window).
wget https://www.emqx.com/en/downloads/broker/5.1.0/emqx-5.1.0-debian11-arm64.tar.gz
Install EMQX.
mkdir -p emqx && tar -zxvf emqx-5.1.0-debian11-arm64.tar.gz -C emqx
Start EMQX
After the installation, run the command below to start EMQX.
./emqx/bin/emqx start