Changes between Initial Version and Version 1 of mqttredis


Ignore:
Timestamp:
07/31/22 16:31:59 (2 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mqttredis

    v1 v1  
     1= MQTT with Redis =
     2
     3Ref [https://github.com/jllopis/docker-mosquitto here]
     4
     51. get the hash key with following command
     6{{{
     7krit@mini ~$ docker run -it docker-mosquitto-master_mosquitto np -p mypassword
     8PBKDF2$sha256$901$9QuSsTtUWxCQZYN1$AqEXxC19zJcjcsaHUvSPzAIZA+zq0ccT
     9}}}
     10
     112. get the ip address of redis-mosq docker by
     12{{{
     13krit@mini ~$  docker inspect redis-mosq
     14}}}
     15
     163. add user to redis-mosq with command "set user password" as follow
     17{{{
     18krit@mini ~$ docker exec -it redis-mosq  sh -c 'exec redis-cli -h "192.168.176.2" -p "6379"'
     19192.168.176.2:6379>  set krit PBKDF2$sha256$901$9QuSsTtUWxCQZYN1$AqEXxC19zJcjcsaHUvSPzAIZA+zq0ccT
     20192.168.176.2:6379>  quit
     21}}}