美文网首页
Redis BGSAVE内存不足异常

Redis BGSAVE内存不足异常

作者: 一介书生独醉江湖 | 来源:发表于2023-06-04 09:32 被阅读0次
Handling error: RedisPipelineException, Pipeline contained one or more invalid commands; nested exception is io.lettuce.core.RedisCommandExecutionException: 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
# 百度翻译
处理错误:RedisPipelineException,管道包含一个或多个无效命令;嵌套异常为io.lettuce.core.RedisCommandExecutionException:MISCONF Redis被配置为保存RDB快照,但目前无法在磁盘上持久存在。可能修改数据集的命令被禁用,因为此实例被配置为在RDB快照失败时在写入期间报告错误(在bgsave错误选项上停止写入)。有关RDB错误的详细信息,请查看Redis日志
# 停止持久化

bogon:~ ds# redis-cli
127.0.0.1:6379>config set stop-writes-on-bgsave-error no

# 我这边用redis就是为了存储token,所以直接停掉了持久化,
# 更多可以参考这篇文章:
https://www.cnblogs.com/wsx2019/p/15689242.html

相关文章

网友评论

      本文标题:Redis BGSAVE内存不足异常

      本文链接:https://www.haomeiwen.com/subject/qlauedtx.html