Installing a Mosquitto broker on Ubuntu Linux
Now, we will learn the necessary steps to install a Mosquitto broker, also known as Mosquitto MQTT server on the most popular operating systems: Linux, macOS and Windows. First, we will start with Linux; specifically, we will work with Ubuntu Linux. In case you want to work with a different Linux distribution, you can find details about the installation procedure in the Mosquitto downloads section: http://mosquitto.org/download.
Follow these steps to install a Mosquitto broker on Ubuntu Linux. Take into account that you will require root privileges:
- Open a Terminal window and run the following command to add the Mosquitto repository:
sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
After you ...
Get MQTT Essentials - A Lightweight IoT Protocol now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.