Redis连接错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...

时间:2025-04-21 10:38:54

今天连接Redis出现了MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...的奇葩错误,网上查了一下发现问题是:强制把redis快照关闭了导致不能持久化

这个我也表示黑人问号,昨天还连的好好的,今天跟我说强制。。。

解决方法如下:

  1. Redis客户端执行:config set stop-writes-on-bgsave-error no
  2. 修改文件,stop-writes-on-bgsave-error=yes修改为stop-writes-on-bgsave-error=no