对于REdis集群,如果设置了requirepass,
则一定要设置masterauth,否则从节点无法正常工作,查看从节点日志可以看到哪下内容:
19213:S 22 Apr 2019 10:52:17.389 * Connecting to MASTER 1.6.18.16:2181
19213:S 22 Apr 2019 10:52:17.389 * MASTER <-> REPLICA sync started
19213:S 22 Apr 2019 10:52:17.389 * Non blocking connect for SYNC fired the event.
19213:S 22 Apr 2019 10:52:17.390 * Master replied to PING, replication can continue...
19213:S 22 Apr 2019 10:52:17.390 * (Non critical) Master does not understand REPLCONF listening-port: -NOAUTH Authentication required.
19213:S 22 Apr 2019 10:52:17.390 * (Non critical) Master does not understand REPLCONF capa: -NOAUTH Authentication required.
19213:S 22 Apr 2019 10:52:17.390 * Partial resynchronization not possible (no cached master)
19213:S 22 Apr 2019 10:52:17.390 # Unexpected reply to PSYNC from master: -NOAUTH Authentication required.
19213:S 22 Apr 2019 10:52:17.390 * Retrying with SYNC...
19213:S 22 Apr 2019 10:52:17.390 # MASTER aborted replication with an error: NOAUTH Authentication required.

正常时的日志如下:
37706:S 22 Apr 2019 10:59:13.125 * Connecting to MASTER 1.6.18.16:2181
37706:S 22 Apr 2019 10:59:13.125 * MASTER <-> REPLICA sync started
37706:S 22 Apr 2019 10:59:13.125 * Non blocking connect for SYNC fired the event.
37706:S 22 Apr 2019 10:59:13.125 * Master replied to PING, replication can continue...
37706:S 22 Apr 2019 10:59:13.125 * Trying a partial resynchronization (request d2aeb271d9f4974e71487e5dac86e6e8c70c025e:1).
37706:S 22 Apr 2019 10:59:13.126 * Full resync from master: 884f5964d7eff95277ecb6d594ff4dd78b7eb900:0
37706:S 22 Apr 2019 10:59:13.126 * Discarding previously cached master state.
37706:S 22 Apr 2019 10:59:13.165 * MASTER <-> REPLICA sync: receiving 175 bytes from master
37706:S 22 Apr 2019 10:59:13.165 * MASTER <-> REPLICA sync: Flushing old data
37706:S 22 Apr 2019 10:59:13.165 * MASTER <-> REPLICA sync: Loading DB in memory
37706:S 22 Apr 2019 10:59:13.165 * MASTER <-> REPLICA sync: Finished with success
37706:S 22 Apr 2019 10:59:13.165 * Background append only file rewriting started by pid 37729

实际上redis.conf有明确说明:
# If the master is password protected (using the "requirepass" configuration
# directive below) it is possible to tell the replica to authenticate before
# starting the replication synchronization process, otherwise the master will
# refuse the replica request.
#
# masterauth <master-password>

REdis MASTER aborted replication NOAUTH Authentication required的更多相关文章

  1. Redis报错 : (error) NOAUTH Authentication required.

    原文:Redis报错 : (error) NOAUTH Authentication required. 这个错误是因为没有用密码登陆认证 , 先输入密码试试 . 127.0.0.1:6379> ...

  2. redis出现错误:NOAUTH Authentication required.

    出现认证问题,应该是设置了认证密码,输入密码既可以啦 注意密码是字符串形式! 127.0.0.1:6379> auth "yourpassword" 127.0.0.1:63 ...

  3. Redis 突然报错 NOAUTH Authentication required

    查找相关资料,说是添加了密码 只需要在redis的配置文件redis.conf中开启requirepass就可以了,比如我设置我的访问密码是mypassword requirepass mypassw ...

  4. Redis服务停止报错解决方案[NOAUTH Authentication required]

    Redis服务器设置密码后,使用service redis stop 会出现以下信息: service redis stop Stopping ... OK (error) NOAUTH Authen ...

  5. redis安全 (error) NOAUTH Authentication required

    Redis 安全 我们可以通过 redis 的配置文件设置密码参数,这样客户端连接到 redis 服务就需要密码验证,这样可以让你的 redis 服务更安全. 实例 我们可以通过以下命令查看是否设置了 ...

  6. Redis NOAUTH Authentication required

    redis设置密码后停止服务报错,NOAUTH Authentication required 可以修改/etc/init.d/redis文件中的stop命令 $CLIEXEC -p $REDISPO ...

  7. Redis (error) NOAUTH Authentication required.

    首先查看redis设置密码没 127.0.0.1:6379> config get requirepass 1) "requirepass" 2) "" ...

  8. {Redis}NOAUTH Authentication required. Linux.cenOS

    问题 [root@VM_0_12_centos redis]# ./bin/redis-cli -p 6379 127.0.0.1:6379> INFO NOAUTH Authenticatio ...

  9. redis 执行操作时提示(error) NOAUTH Authentication required.

    (error) NOAUTH Authentication required. 出现认证问题,设置了认证密码,输入密码即可 127.0.0.1:6379> auth 123456

随机推荐

  1. Oracle:查询各组最新的一条记录

    oracle中怎么查询各组中最新的一条记录呢?比如说现在有一个表中几条数据如下: 有两种写法:写法一:over partition by 分析函数 SELECT * FROM (select ID_, ...

  2. 我们一起踩过的坑----react(antd)(二)

    1.antd Upload默认值问题 需求是这样的,后台若没有图片默认值,则只有上传按钮,且只能上传一张图片:若有默认值,则显示默认头像图片, 可删除,删除之后有且只能添加一张图片,没有删除默认图片时 ...

  3. Linux nfs使用krb5的方式安全挂载

    配置安全的网络nfs文件共享服务 由于本人是使用的rhce模拟考试环境来做的本题目,所以文中说到的实验脚本和评分脚本,以及krb5.keytab文件只有我本套环境独有,如果自己做练习可以不去使用实验脚 ...

  4. FormsAuthentication 票据前后台登录导致掉线

    一.前后台的用户信息都是采用.NET自带的FormsAuthentication 的ticket存取用户信息, 但是如果前后台用相同的用户使用票据这个会导致一方登陆后另一方会掉线,需要重新登陆. 二. ...

  5. Git命令面试集

    获取与创建项目命令 git init              在目录中创建新的Git仓库(需要切换到目录下) git clone          拷贝一个Git仓库到本地 基本快照 git add ...

  6. C# 微信网页授权多域名解决

    在做微信开发的时候,会遇到这样的场景:一个公众号,会有多个业务:官网.论坛.商城等等 微信网页授权域名 目前最多可以填写两个!!!,那么问题来了?这应该怎么办? 答案就是: 做一个中转服务! 域名1: ...

  7. 从零开始学spring cloud(二) -------- 开始使用Spring Cloud实战微服务

    1.准备工作 2.服务提供者与服务消费者 3.服务发现与服务注册 服务发现: 服务注册表: 服务注册表是一个记录当前可用服务实例的网络信息的数据库,是服务发现机制的核心.服务注册表提供查询API和管理 ...

  8. 项目总结20:阿里云免费https证书申请

    项目总结20:阿里云免费https证书申请 1. 登录阿里云控制台 www.aliyun.com,用账户信息登录 2. 在”产品与服务”搜索SSL,选择SSL证书 3. 点击购买证书 4. 选择” S ...

  9. python 基础 ----- 变量

    ------  python注释 注释的作用:代码提示,运行时忽略不必要的代码 注释的三种方式: 1.“#” 单行注释 2.多行注释   三个单引号  和三个双引号都可以 注释的快捷键 Ctrl + ...

  10. 将字符串向hdfs中写入,出现中文乱码!

    jsonObject.toString():需要处理的json对象转成的字符串 "/testData/ExtractKWByOnce.txt":写入hdfs中的目标路径 try { ...