| 知乎专栏 |
npm install redis-dump -g
导出 redis 数据
redis-dump -h 127.0.0.1 -a "密码" -d '指定数据库' > db0.json
导入 redis 数据
cat db0.json | redis-cli -h 127.0.0.1 -p 6379 -n '指定数据库' -a "密码"
https://github.com/ErikDubbelboer/phpRedisAdmin
Example
You can find an example database at http://dubbelboer.com/phpRedisAdmin/
第一种方法
git clone https://github.com/ErikDubbelboer/phpRedisAdmin cd phpRedisAdmin git clone https://github.com/nrk/predis
第二种方法
git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git cd phpRedisAdmin git submodule init git submodule update