Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

33.8. 工具

33.8.1. 导出 / 导入

			
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 "密码"
			
			

33.8.2. phpRedisAdmin

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
		

33.8.3. A fast, light-weight proxy for memcached and redis

https://github.com/twitter/twemproxy