解决Redis之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.

  • 2017-09-16
  • 37
  • 0
  • 0

今天运行项目接口总是报500错误,看错误信息发现redis有问题,重启docker中redis后解决,过了5分钟又出现该问题

以下是错误信息:

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运行用户没有权限写rdb文件或者磁盘空间满了

解决办法:

redis-cli
config set stop-writes-on-bgsave-error no

评论

还没有任何评论,你来说两句吧