在使用redis客户 端时,执行命令有时候会发生如下错误
127.0.0.1:6379> incrby index 2
(error) MISCONF Redis is configured to save RDB snapshots,
but it is currently not able to persist on disk.
Commands that may modify the data set are disabled,
because this instance is configured to report errors during
writes if RDB snapshotting fails (stop-writes-on-bgsave-error option).
Please check the Redis logs for details about the RDB error.
这时我们 只要在客户客户端上执行如下命令,然后重连redis服务端即可
config set stop-writes-on-bgsave-error no