---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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]}}`
