redis遇到的问题
- Caused by: io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
今天使用redis遇到了一个问题。redis被配置为保存数据快照,但是不能持久化到硬盘。用来修改集合数据的命令不能用。请查看Redis的日志和错误原因。
可能的原因:
强制关闭redis快照导致不能持久化。
解决方案(执行以下命令):
lxq@lxq-iioss: ~$ redis-cli
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
ok
127.0.0.1:6379> lpush myColour "red"
(integer) 1