waoffle解析redis aof文件

 

1.安装npm

安装步骤请参考

https://www.cnblogs.com/hxlasky/p/16141313.html

 

2.安装waoffle

[root@localhost tmp]# npm install -g waoffle
/usr/local/bin/waoffle -> /usr/local/lib/node_modules/waoffle/lib/parse.js
/usr/local/bin/rwaoffle -> /usr/local/lib/node_modules/waoffle/lib/generate.js
+ waoffle@1.1.2
added 1 package from 1 contributor in 1.743s

$ cat appendonly.aof | waoffle # Pipe from other UNIX commands
$ waoffle < appendonly.aof # or, pipe directly from stdin
$ waoffle appendonly.aof # or, just specify the filename

 

3.使用
waoffle<appendonly.aof

重定向到文件
waoffle < /tmp/appendonly.aof > /tmp/generated_commands.txt

posted @ 2021-11-16 13:45  slnngk  阅读(204)  评论(0编辑  收藏  举报