Files
cheatsheet-tldr/tldr/mosquitto
2025-05-12 00:21:19 +00:00

26 lines
465 B
Plaintext

---
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]}}`