Inst mosquitto » History » Version 1
Michael Gunsch, 01/02/2023 05:37 PM
| 1 | 1 | Michael Gunsch | h1. Installation MQTT-Server (Broker) Mosquitto unter Debian |
|---|---|---|---|
| 2 | |||
| 3 | h2. Pakete installieren |
||
| 4 | |||
| 5 | <pre><code class="shell"> |
||
| 6 | sudo apt install mosquitto mosquitto-clients |
||
| 7 | </code></pre> |
||
| 8 | |||
| 9 | h2. Konfiguration |
||
| 10 | |||
| 11 | /etc/mosquitto/mosquitto.conf |
||
| 12 | |||
| 13 | <pre> |
||
| 14 | # Place your local configuration in /etc/mosquitto/conf.d/ |
||
| 15 | # |
||
| 16 | # A full description of the configuration file is at |
||
| 17 | # /usr/share/doc/mosquitto/examples/mosquitto.conf.example |
||
| 18 | |||
| 19 | pid_file /var/run/mosquitto.pid |
||
| 20 | |||
| 21 | persistence true |
||
| 22 | persistence_location /var/lib/mosquitto/ |
||
| 23 | persistent_client_expiration 30d |
||
| 24 | |||
| 25 | log_dest file /var/log/mosquitto/mosquitto.log |
||
| 26 | |||
| 27 | include_dir /etc/mosquitto/conf.d |
||
| 28 | </pre> |