Redis学习笔记(二)解析dump.rdb文件工具之redis-rdb-tools
https://github.com/sripathikrishnan/redis-rdb-tools
我这里使用docker搭建
docker搭建文档 https://rdbtools.com/docs/rdbtools-docker-installation-locally/
在Windows 命令行直接运行服务,则直接按安装后会自动执行
C:\Users\tinywan>docker run -v rdbtools:/db -p 8001:8001 rdbtools/rdbtools Unable to find image 'rdbtools/rdbtools:latest' locally latest: Pulling from rdbtools/rdbtools a073c86ecf9e: Pull complete 3754687b52d3: Pull complete f80e97db8f46: Pull complete 520468cf7dda: Pull complete 5938313531ef: Pull complete bf54dda452f0: Pull complete 3f8a5502872c: Pull complete 1b2e0d2ff061: Pull complete 6dc561711501: Pull complete 64fc7f00afc5: Pull complete dbe06bac4419: Pull complete b3ec0bf16f6d: Pull complete Digest: sha256:a2a59a12a59227a3f2475f4653f01c75a56c10a47008d3a96a3ef36c33b27a8b Status: 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 123tinywan OK 127.0.0.1:6379> set name123 123tinywan OK 127.0.0.1:6379> set name456 123tinywan OK 127.0.0.1:6379> set name789 123tinywan OK 127.0.0.1:6379>
以上查询本地数据库有8个keys,然后我们新增了连个keys