换了个新电脑,装上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即可,需要重启下系统或重启下进程,自己操作吧。
在新电脑上安装Redis时遇到持久化错误,导致数据无法从内存写入硬盘。该问题可通过修改配置文件解决,具体步骤是找到redis.conf中的'stop-writes-on-bgsave-error yes',将其改为'no',然后重启Redis服务。这样可以允许Redis在RDB快照失败时继续写入。
888

被折叠的 条评论
为什么被折叠?



