zoukankan      html  css  js  c++  java
  • redis服务在宕机之后报错“Node xxxx:7000 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0”(windows)

    redis在启动集群时报错,xxxx:7000 is not empty. Either the node already knows other nodes(check with CLUSTER NODES) or contains some key in database 0”

    解决方案:

    1、删除redis启动集群时生成的.aof文件和.rdb文件;

    2、将对应节点的“nodes-7000.conf”文件(在redis.windows.config文件的“cluster-config-file nodes-7000.conf”位置处配置)删除

    3、重新执行“redis-trib.rb create --replicas 1 xxxx:7000 xxxx:7001 xxxx:7002 xxxx:7003 xxxx:7004 xxxx:7005”,启动集群成功

    aof和rdb是两个可持久化文件,一般可用来做数据恢复

    aof比rdb在可靠性上更高一些

  • 相关阅读:
    Cornfields POJ
    二维RMQ模板
    降雨量 HYSBZ
    Frequent values UVA
    UVA
    Argus UVALive
    关于二分图有向边和无向边问题探讨
    Guardian of Decency UVALive
    SAM I AM UVA
    【062新题】OCP 12c 062出现大量新题-15
  • 原文地址:https://www.cnblogs.com/jeff-z-blog/p/9493777.html
Copyright © 2011-2022 走看看