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
意思是:(错误)misconf redis配置为保存RDB快照,但它当前无法在磁盘上持久。可以修改数据集的命令被禁用,因为此实例被配置为在RDB快照失败时报告写入过程中的错误(在bgsave错误选项上停止写入)。有关RDB错误的详细信息,请查看redis日志。
方案一(命令行操作):
127.0.0.1:6379[5]> CONFIG SET stop-writes-on-bgsave-error no
方案二(修改redis.conf文件)
vim /etc/redis.conf 并重启redis服务
# However if you have setup your proper monitoring of the Redis server
# and persistence, you may want to disable this feature so that Redis will
# continue to work as usual even if there are problems with disk,
# permissions, and so forth.
stop-writes-on-bgsave-error no