LinuxCommandLibrary

mosquitto

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.
mosquitto is MQTT message broker.

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 as an Eclipse Foundation project providing open source MQTT broker implementation.

SEE ALSO

Copied to clipboard