Skip to content

Install EMQX Enterprise on Ubuntu

This page guides you on installing and starting EMQX on the Ubuntu system.

Supported versions:

  • Ubuntu 22.04
  • Ubuntu 20.04
  • Ubuntu 18.04

The section below will take Ubuntu 22.04 as an example to illustrate how to download the latest version of EMQX. For other versions, please visit the EMQX Deployment page.

Install with deb

  1. Go to EMQ Official Site.
  2. Select 5.4.1 for Version and Ubuntu for OS, and click the Download button.
  3. On the Downloads and Install page, select deb as the Install Method and select the proper CPU Architecture that matches your system. Download and install the package according to the instruction.

Start EMQX

EMQX offers 3 different options to start EMQX:

  • To start EMQX directly, run:

    bash
    $ emqx start
    EMQX 5.4.1 is started successfully!
    
    $ emqx ctl status
    Node 'emqx@127.0.0.1' 5.4.1 is started
  • To start EMQX with systemctl, run:

    bash
    sudo systemctl start emqx
  • To start EMQX as a service, run:

    bash
    sudo service emqx start

Uninstall EMQX

To uninstall EMQX, run:

sudo apt remove --purge emqx

Install with tar.gz

  1. Go to EMQ Official Site.
  2. Select 5.4.1 for Version and Ubuntu for OS, and click the Download button.
  3. On the Downloads and Install page, select tar.gz as the Install Method and select the proper CPU Architecture that matches your system. Download and install the package according to the instruction.

Start EMQX

After the installation, run the command below to start EMQX.

bash
./emqx/bin/emqx start