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.
Update the system packages by running the following command:
sudo apt update
Install the dependencies required by EMQX with the following command:
sudo apt install build-essential openssl libssl-dev erlang erlang-dev
Download the EMQX public key with the following command:
wget -O - https://repos.emqx.io/emqx-apt/public.gpg | sudo apt-key add -
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
Update the system packages again with the following command:
sudo apt update
Install EMQX with the following command:
sudo apt install emqx
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
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!