换了个新电脑,装上reids,有如下报错
redis.exceptions.ResponseError: 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.
RDB错误就是持久化错误,也就是说数据无法从内存写入硬盘
其实改起来也很简单。
/usr/local/redis/redis.conf
找打 stop-writes-on-bgsave-error yes 这句,把yes改为no即可,需要重启下系统或重启下进程,自己操作吧。