1、启动服务:指定目录redis-server redis.conf +Enter
./redis-server /usr/local/redis/redis-2.8.13/redis.conf
2、启动客户端:指定目录 redis-cli +Enter
3、借助linux的xargs命令批量删除key
redis-cli keys “test*” | xargs redis-cli del
4、查看所有keys :redis-cli keys '*'
5、读取中文 :redis-cli --raw : set name “张三” get name即可显示中文
6、redis list显示所有数据:lrange key 0 -1
7、Redis set显示所有数据:smembers key
8、redis hash显示所有数据:hgetall
注:待完善中