我这里使用docker搭建
docker搭建文档 https://rdbtools.com/docs/rdbtools-docker-installation-locally/
在Windows 命令行直接运行服务,则直接按安装后会自动执行
C:\Users\tinywan>docker run -v rdbtools:/db -p 8001:8001 rdbtools/rdbtoolsUnable to find image 'rdbtools/rdbtools:latest' locallylatest: Pulling from rdbtools/rdbtoolsa073c86ecf9e: Pull complete3754687b52d3: Pull completef80e97db8f46: Pull complete520468cf7dda: Pull complete5938313531ef: Pull completebf54dda452f0: Pull complete3f8a5502872c: Pull complete1b2e0d2ff061: Pull complete6dc561711501: Pull complete64fc7f00afc5: Pull completedbe06bac4419: Pull completeb3ec0bf16f6d: Pull completeDigest: sha256:a2a59a12a59227a3f2475f4653f01c75a56c10a47008d3a96a3ef36c33b27a8bStatus: Downloaded newer image for rdbtools/rdbtools:latest....
浏览器访问:http://localhost:8001
按照步骤一步一步来
最后的结果
cmd命令行进行测试
127.0.0.1:6379> keys *1) "name123"2) "name"3) "COMMENTS:LATEST:"4) "QUEUES:DELAY:ORDER"5) "COMMENTS:LATEST:L06777"6) "COMMENTS:TOATAL:"7) "PV:ROOM:L06777"8) "COMMENTS:TOATAL:L06777"127.0.0.1:6379> set name123 123tinywanOK127.0.0.1:6379> set name123 123tinywanOK127.0.0.1:6379> set name456 123tinywanOK127.0.0.1:6379> set name789 123tinywanOK127.0.0.1:6379>
以上查询本地数据库有8个keys,然后我们新增了连个keys