redis 导出

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

posted @ 2019-04-24 17:14  刘大飞  阅读(234)  评论(0编辑  收藏  举报