wiki:mqttredis

Version 1 (modified by krit, 2 years ago) (diff)

--

MQTT with Redis

Ref here

  1. get the hash key with following command
    krit@mini ~$ docker run -it docker-mosquitto-master_mosquitto np -p mypassword 
    PBKDF2$sha256$901$9QuSsTtUWxCQZYN1$AqEXxC19zJcjcsaHUvSPzAIZA+zq0ccT
    
  1. get the ip address of redis-mosq docker by
    krit@mini ~$  docker inspect redis-mosq 
    
  1. add user to redis-mosq with command "set user password" as follow
    krit@mini ~$ docker exec -it redis-mosq  sh -c 'exec redis-cli -h "192.168.176.2" -p "6379"'
    192.168.176.2:6379>  set krit PBKDF2$sha256$901$9QuSsTtUWxCQZYN1$AqEXxC19zJcjcsaHUvSPzAIZA+zq0ccT
    192.168.176.2:6379>  quit
    

Attachments (1)

Download all attachments as: .zip