HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mosquitto — An MQTT broker. More information: <https://mosquitto.org/man/mosquitto-8.html>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
httpscommandclimqttinformationmorebrokermosquitto

Problem

How to use the mosquitto command: An MQTT broker. More information: <https://mosquitto.org/man/mosquitto-8.html>.

Solution

mosquitto — An MQTT broker. More information: <https://mosquitto.org/man/mosquitto-8.html>.

Start Mosquitto:
mosquitto


Specify a configuration file to use:
mosquitto {{[-c|--config-file]}} {{path/to/file.conf}}


Listen on a specific port:
mosquitto {{[-p|--port]}} {{8883}}


Daemonize by forking into the background:
mosquitto {{[-d|--daemon]}}

Code Snippets

Start Mosquitto

mosquitto

Specify a configuration file to use

mosquitto {{[-c|--config-file]}} {{path/to/file.conf}}

Listen on a specific port

mosquitto {{[-p|--port]}} {{8883}}

Daemonize by forking into the background

mosquitto {{[-d|--daemon]}}

Context

tldr-pages: common/mosquitto

Revisions (0)

No revisions yet.