yum install centos-release-scl-rh -y
#配置yum仓库
yum install rh-ruby23* -y
#安装其他工具,不安装后面可能会报错
scl enable rh-ruby23 bash
ruby -v
#查看版本
gem install redis-dump -V
redis转存储json
$ redis-dump -u 192.168.205.130:6302 -a password > /opt/redis-group/test.json
json还原redis
$ < 6379.json redis-load -n -u 192.168.205.130:6302 -a password