在初次配置使用redis时报错:
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.conf配置文件中找到stop-writes-on-bgsave-error并将yes改为no
方法二:在命令行中连接redis后输入config set stop-writes-on-bgsave-error no即可