Redis 数据库导出为json解决方案之一
以下操作在centos 7 x64上**** Hidden Message *****
5.redis.json就是本次需要的redis数据库json版本了
曲折的故事:
本来想用redis-dump,结果怎么也用不了安装到最后一步完成后执行都一直报错,找了1天偌大的搜索引擎没有一个有效的解决方案,ruby很少人用吗?
win报错:
<internal:E:/soft/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- uri/redis (LoadError)
from <internal:E:/soft/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from C:/Users/admin/.local/share/gem/ruby/3.3.0/gems/redis-dump-0.6.1/lib/redis/dump.rb:11:in `<top (required)>'
from <internal:E:/soft/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from <internal:E:/soft/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from C:/Users/admin/.local/share/gem/ruby/3.3.0/gems/redis-dump-0.6.1/exe/redis-dump:18:in `<top (required)>'
from C:/Users/admin/AppData/Local/Microsoft/WindowsApps/redis-dump:32:in `load'
from C:/Users/admin/AppData/Local/Microsoft/WindowsApps/redis-dump:32:in `<main>'
,所以只能曲线转换了,反正能用就好
页:
[1]