Linux command
mosquitto 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start MQTT broker
mosquitto
Start with config file
mosquitto -c [/etc/mosquitto/mosquitto.conf]
Start in verbose mode
mosquitto -v
Specify port
mosquitto -p [1883]
Run as daemon
mosquitto -d
Specify log file
mosquitto -c [mosquitto.conf] --log-dest file [/var/log/mosquitto.log]
说明
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.
参数
- -c _FILE_
- Configuration file.
- -p _PORT_
- Listening port.
- -v
- Verbose mode.
- -d
- Run as daemon.
- --log-dest _TYPE_
- Log destination.
- --help
- Display help information.
FAQ
What is the mosquitto command used for?
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.
How do I run a basic mosquitto example?
Run `mosquitto` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c _FILE_ do in mosquitto?
Configuration file.