zoukankan      html  css  js  c++  java
  • 记录 Redis 偶然错误 MISCONF Redis is configured to save RDB snapshots

    百度搜索发现了这么个解决办法。但是没有原因。执行下,redis 访问正常了

    项目中用到redis做缓存服务器,近日出现这个异常:

    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.
    redis.clients.jedis.Protocol.processError(Protocol.java:113)
    redis.clients.jedis.Protocol.process(Protocol.java:138)
    redis.clients.jedis.Protocol.read(Protocol.java:192)
    redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:282)
    redis.clients.jedis.Connection.getIntegerReply(Connection.java:207)
    redis.clients.jedis.BinaryJedis.setnx(BinaryJedis.java:435)
    com.radiadesign.catalina.session.RedisSessionManager.createSession(RedisSessionManager.java:274)
    org.apache.catalina.connector.Request.doGetSession(Request.java:3014)
    org.apache.catalina.connector.Request.getSession(Request.java:2378)
    org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:897)
    org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:909)
    javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:238)
    javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:238)
    javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:238)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

    网上搜索,很多人都给出了解决方法,但没有详细说明问题的来龙去脉,暂且记下,待有空了研究。

    解决方法:通过redis-cli连接到服务器后执行以下命令:

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

    如此即可。

    --------------------- 本文来自 rchm8519 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/rchm8519/article/details/48369531?utm_source=copy


        吾之爱,心之念。
               携子手,到白头。

  • 相关阅读:
    LeetCode 183. Customers Who Never Order (从不订购的客户)
    LeetCode 182. Duplicate Emails (查找重复的电子邮箱)
    LeetCode 181. Employees Earning More Than Their Managers (超过经理收入的员工)
    LeetCode 176. Second Highest Salary (第二高的薪水)
    CMake Tutorial
    osx c++连接mysql
    为mysql 表重新设置自增的主键id
    更改pandas dataframe 列的顺序
    会场安排问题
    nlpir分词器过期处理
  • 原文地址:https://www.cnblogs.com/JC-0527/p/9728395.html
Copyright © 2011-2022 走看看