Mosquitto comes with a password file generating utility called mosquitto_passwd.
mosquitto_passwd -c /etc/mosquitto/passwd <user>
Ensure that the file is managed by the appropriate user and group.
chown mosquitto:mosquitto /etc/mosquitto/passwd
Now restart Mosquitto server.
systemctl restart mosquitto
The command below will show what ports are listening (look for *:1883 (LISTEN))
lsof -i -P -n | grep LISTEN
No hay comentarios:
Publicar un comentario