1 安装redis:
apt update
apt-get install redis-server
2: cd /etc/redis
3: 用redis-cli导出key
redis-cli -h {redis host} -p 6379 -a {password} keys "*" |while read a;do echo -n $a: ;redis-cli -h {redis host} -p 6379 -a {password} get $a ;done