Tutorial: How to Install EMQX on Debian Latest

EMQX is an open-source MQTT broker that is widely adopted in IoT applications. It's known for its high scalability, flexibility, and low latency. In this tutorial, we will guide you through the steps of installing EMQX on Debian latest.

Prerequisites

Installation Steps

  1. Update the system packages by running the following command:

    sudo apt update
    
  2. Install the dependencies required by EMQX with the following command:

    sudo apt install build-essential openssl libssl-dev erlang erlang-dev
    
  3. Download the EMQX public key with the following command:

    wget -O - https://repos.emqx.io/emqx-apt/public.gpg | sudo apt-key add -
    
  4. Add the EMQX APT repository to the system sources list by running the following command:

    echo "deb https://repos.emqx.io/emqx-apt/debian/ $(lsb_release -c -s) emqx" | sudo tee /etc/apt/sources.list.d/emqx.list
    
  5. Update the system packages again with the following command:

    sudo apt update
    
  6. Install EMQX with the following command:

    sudo apt install emqx
    
  7. Start the EMQX service with the following command:

    sudo systemctl start emqx
    

    You can also enable the EMQX service to start automatically on system boot with the following command:

    sudo systemctl enable emqx
    
  8. Check the EMQX service status with the following command:

    sudo systemctl status emqx
    

    The output should show that the service is running.

Congratulations, you have successfully installed EMQX on Debian Latest. You can now use it to handle MQTT messaging in your IoT applications.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!