zoukankan      html  css  js  c++  java
  • 读取redis中的数据时出现:MISCONF Redis is configured to save RDB snapshots

    读取redis中的数据时出现:MISCONF Redis is configured to save RDB snapshots 

     
    以下为异常详细信息:

    Exception in thread "main" redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

     
    产生时的条件:
     
    数据持续写入,读取速度远低于写入速度,持续1H以上(中途开了一个较长时间的会,一直写入数据,没管),内存占用量为80%。
     
    由于我目前并未对redis做详细深入理解,故根据网上资料说明:
     
    stop-writes-on-bgsave-error yes
     
    #默认情况下,如果在RDB snapshots持久化过程中出现问题,设置该参数后,Redis是不允许用户
    进行任何更新操作(set...)。避免人为强制停止redis 快照
     
     
    解决:
     
    进入redis  src目录下
     
    启动客户端:

    ./redis-cli

    输入:

    config set stop-writes-on-bgsave-error no

  • 相关阅读:
    dos
    admin package
    ant 调用系统环境变量
    idea6+tomcat5.5开发web程序
    VFloppy
    ant中classpath
    Velocity用户手册
    ant中 Tomcat的任务调用(包括deploy,undeploy,load,start,stop等)
    [转]aidl高级应用篇
    Android NDK开发环境安装(OK版)
  • 原文地址:https://www.cnblogs.com/Rozdy/p/5266126.html
Copyright © 2011-2022 走看看