LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mosquitto

open source MQTT message broker

TLDR

Start MQTT broker
$ mosquitto
copy
Start with config file
$ mosquitto -c [/etc/mosquitto/mosquitto.conf]
copy
Start in verbose mode
$ mosquitto -v
copy
Specify port
$ mosquitto -p [1883]
copy
Run as daemon
$ mosquitto -d
copy
Specify log file
$ mosquitto -c [mosquitto.conf] --log-dest file [/var/log/mosquitto.log]
copy

SYNOPSIS

mosquitto [options]

DESCRIPTION

mosquitto is an open source MQTT message broker. It implements MQTT protocol versions 5.0, 3.1.1, and 3.1.The tool handles publish/subscribe messaging. Lightweight and suitable for IoT applications.

PARAMETERS

-c FILE

Configuration file.
-p PORT
Listening port.
-v
Verbose mode.
-d
Run as daemon.
--log-dest TYPE
Log destination.
--help
Display help information.

CAVEATS

Requires proper security config. Default no authentication. Consider TLS for production.

HISTORY

mosquitto was created by Roger Light around 2009 and later joined the Eclipse Foundation in 2014. It provides a lightweight, open source MQTT broker suitable for embedded and IoT applications.

SEE ALSO

Copied to clipboard
Kai