zoukankan      html  css  js  c++  java
  • Redis报错:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...

    Outline

    今天在启动celery时报错:

    [2020-12-21 14:12:48,615: ERROR/MainProcess] consumer: Cannot connect to redis://127.0.0.1:6379/1: 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 (sto
    │p-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error..
    │Trying again in 18.00 seconds... (9/100)

     问题定位

    网上查阅后发现是因为,把redis快照强制关闭了导致不能持久化的问题

    目前发现两种解决方案:

    1、通过stop-writes-on-bgsave-error值设置为no即可避免这种问题。

    2、通过修改redis.conf配置文件,将stop-writes-on-bgsave-error值改为no(效果和1一样)

    解决

    通过redis命令行直接改:

    进入redis命令行执行:config set stop-writes-on-bgsave-error no

     通过修改redis.conf文件修改:

     

     保存退出

    参考:https://blog.csdn.net/qq_22167989/article/details/103136300

  • 相关阅读:
    Daily Scrum NO.4
    Daily Scrum NO.3
    Daily Scrum NO.2
    Daily Scrum NO.1
    Beta任务项录入
    M1事后分析报告
    wenbao与概率
    wenbao与组合数
    wenbao与高斯消元
    wenbao与链表
  • 原文地址:https://www.cnblogs.com/bigtreei/p/14167656.html
Copyright © 2011-2022 走看看