# make的时候 cc 命令不存在
yum install -y gcc
# make 的时候遇到 zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory
cd deps
make hiredis jemalloc linenoise lua geohash-int
cd ..
make
1.bind 127.0.0.1改为 #bind 127.0.0.1
2.protected-mode yes 改为 protected-mode no
# 删除 db = 0 的 所有key
redis-cli -n 0 keys "*" | xargs redis-cli -n 0 del
# 从db a 将 key 复制到 db2
redis-cli -h 127.0.0.1 -p 8090 -a 1234 -n 14 --raw dump key | perl -pe 'chomp if eof' | redis-cli -h 127.0.0.1 -p 8090 -a 1234 -n 15 -x restore key 0