Installation du serveur Mosquitto (MQTT) Procédure optimisée 1. Lancer les mises à jour systèmes root#> apt update root#> apt upgrade Accepter les mises à jour si nécessaire. 2. Lancement de l'installation de Mosquitto root#> apt install mosquitto mosquitto-clients 3. Edition du fichier de configuration, on arrête les services pour editer: root#> /etc/init.d/mosquitto stop root #> nano /etc/mosquitto/mosquitto.conf # Place your local configuration in /etc/mosquitto/conf.d/ # # A full description of the configuration file is at # /usr/share/doc/mosquitto/examples/mosquitto.conf.example pid_file /var/run/mosquitto.pid persistence true persistence_location /var/lib/mosquitto/ log_dest file /var/log/mosquitto/mosquitto.log include_dir /etc/mosquitto/conf.d 4. Création du mot de passe, lancement des tests: root#> /etc/init.d/mosquitto start root #> mosquitto_passwd -c /etc/mosquitto/passwd wiwire root#>...
Commentaires
Enregistrer un commentaire