MISCONF Redis is configured to save RDB snapshots

Redis报错

(error) WRONGTYPE Operation against a key holding the wrong kind of value

拿值的方法不对,get只能拿string类型的,redis有多种类型,比如list,可以用lrange 来取!

(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk

原因:强制关闭Redis快照导致不能持久化
运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-writes-on-bgsave-error解决该问题。

root@ubuntu:/usr/local/redis/bin# ./redis-cli
127.0.0.1:6379> config set stop-writes-on-bgsave-error no

OK


欢迎转载,但请附上原文地址哦,尊重原创,谢谢大家 本文地址: http://www.iphpt.com/detail/19/

当你能力不能满足你的野心的时候,你就该沉下心来学习