安装rvm
command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
command curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable
安装ruby
rvm install 2.4
安装redis-dump
gem install redis-dump -V
导出
redis-dump -u 127.0.0.1:6379 > redis.json
导入
redis-load -u 127.0.0.1:6379 < redis.json redis-load