redis-port 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
redis-port 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
redis-port 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !

软件简介

redis-port 是一个 Redis 工具,通过解析 rdb 文件,实现 Redis 主节点和从节点的数据同步。

示例:

$ cat dump.rdb | ./redis-port decode 2>/dev/null
  {"db":0,"type":"string","expireat":0,"key":"a","key64":"YQ==","value64":"MTAwMDA="}
  {"db":0,"type":"string","expireat":0,"key":"b","key64":"Yg==","value64":"aGVsbG8ud29ybGQ="}
  {"db":0,"type":"hash","expireat":0,"key":"c","key64":"Yw==","field":"c1","field64":"YzE=","member64":"MTAw"
  {"db":0,"type":"hash","expireat":0,"key":"c","key64":"Yw==","field":"c2","field64":"YzI=","member64":"dGVzdC5zdHJpbmc="}
  {"db":0,"type":"list","expireat":0,"key":"d","key64":"ZA==","index":0,"value64":"bDE="}
  {"db":0,"type":"list","expireat":0,"key":"d","key64":"ZA==","index":1,"value64":"bDI="}
  {"db":0,"type":"zset","expireat":0,"key":"e","key64":"ZQ==","member":"e1","member64":"ZTE=","score":1.000000}
  {"db":0,"type":"zset","expireat":0,"key":"e","key64":"ZQ==","member":"e2","member64":"ZTI=","score":2.000000}
  ... ...

展开阅读全文

代码

评论 (0)

加载中
更多评论
暂无内容
发表了博客
2018/03/12 20:11

Redis 工具 redis-port 使用

redis-port 是一个 Redis 工具,通过解析 rdb 文件,实现 Redis 主节点和从节点的数据同步。 摘要: 一个可以将redis主从集群,cluster上的数据实时迁移到 codis集群的工具 redis 集群的扩容与收缩,最经典的需求 数据异构同步,从 redis 到 mysql等等 redis 原有集群的拆分,按业务线打散成多个集群 redis 当前内存使用,key占比分析 无用数据的检测和清除 对于 rdb 文件的备份 redis-port原理 简单来说,就是把自已伪装成 slav...

0
0
发表于数据库专区
2015/09/01 10:03

Defining port and port-range in /etc/services file

Technote (FAQ) Question How communication ports and range are defined in /etc/services file in Linux/Unix DB2 partitioned installations? Answer ①单分区: When you create a DB2 instance with single partition, default port of 50000 is assigned for client to server communication. # Default port  db2c_db2inst1         50000/tcp ②多分区: But, a port range is required to enable the co...

0
0
发表了博客
2014/11/05 11:17

Redirect port 80 to port 8080 for Tomcat

By default Tomcat’s HTTP connector listens on port 8080. Changing to port 80 in Linux environment is a tricky issue, since by default listening on any port under 1024 require a privileged user, and for security considerations it is not recommended to run Tomcat with elevated permissions. We can use iptables to achieve this. # open 80 port   sudo iptables -A INPUT -i eth0 -p tcp -...

0
0
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
暂无内容
0 评论
14 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部