**今天运行Redis时发生错误,错误信息如下:
(error) 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配置为保存数据库快照模式,不能持久化到硬盘。用来做数据递增(incr key1)。**
原因
强制关闭Redis快照导致不能持久化。
错误信息
解决方案
192.168.25.130:6379> config set stop-writes-on-bgsave-error no
ok
192.168.25.130:6379> incr key1
(integer) 1