Changes between Version 4 and Version 5 of mqttredis


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

--

Legend:

Unmodified
Added
Removed
Modified
  • mqttredis

    v4 v5  
    44We can get the whole folder by [attachment:docker-mosquitto-master.tar file] [[br]]
    55
    6 1. get the hash key with following command
     61. untar [attachment:docker-mosquitto-master.tar file] and run '''docker-compose up -d '''
     7
     8{{{
     9anunda@Storage1:~/MQTT_REDIS/docker-mosquitto-master$ docker ps
     10CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS              PORTS                                                                     NAMES
     1189a4bf87fc23        docker-mosquitto-master_mosquitto   "/run.sh mosquitto"      About an hour ago   Up About an hour    8883/tcp, 0.0.0.0:1883->1883/tcp, 0.0.0.0:9883->9883/tcp, 9001-9002/tcp   docker-mosquitto-master_mosquitto_1
     12a05510662c79        redis:5.0.4-alpine                  "docker-entrypoint.s…"   About an hour ago   Up About an hour    0.0.0.0:6379->6379/tcp                                                    redis-mosq
     13}}}
     14
     152. get the hash key with following command
    716{{{
    817krit@mini ~$ docker run -it docker-mosquitto-master_mosquitto np -p mypassword
     
    1019}}}
    1120
    12 2. get the ip address of redis-mosq docker by
     213. get the ip address of redis-mosq docker by
    1322{{{
    1423krit@mini ~$ docker inspect redis-mosq
    1524}}}
    1625
    17 3. add user to redis-mosq with command "set user password" as follow
     264. add user to redis-mosq with command "set user password" as follow
    1827{{{
    1928krit@mini ~$ docker exec -it redis-mosq  sh -c 'exec redis-cli -h "192.168.176.2" -p "6379"'