Complete the command to install Mosquitto broker on Ubuntu.
sudo apt-get [1] mosquittoThe install command is used with apt-get to install new packages like Mosquitto.
Complete the command to start the Mosquitto service.
sudo systemctl [1] mosquittoThe start command tells the system to begin running the Mosquitto service.
Fix the error in the command to enable Mosquitto to start on boot.
sudo systemctl [1] mosquittoThe enable command sets Mosquitto to start automatically when the system boots.
Fill both blanks to check Mosquitto service status and show recent logs.
sudo systemctl [1] mosquitto && journalctl -u mosquitto [2]
status shows the current state of Mosquitto service, and -xe shows detailed recent logs with explanations.
Fill all three blanks to create a basic Mosquitto configuration file with default listener and persistence enabled.
listener [1] persistence [2] persistence_location [3]
The default MQTT port is 1883. Setting persistence to true enables saving data. The persistence_location is usually /var/lib/mosquitto/.