当前位置:   article > 正文

【Redis】安装Redis后报ERR Client sent AUTH, but no password is set_(error) err client sent auth, but no password is s

(error) err client sent auth, but no password is set

一、问题描述

安装Redis后使用auth验证是否安装成功(或者其它应用访问redis时报错),报ERR Client sent AUTH, but no password is set

127.0.0.1:6379> auth 123456
(error) ERR Client sent AUTH, but no password is set
  • 1
  • 2

二、问题解决

Win10下,在安装完成Redis后,需要在命令行设置auth账户密码,并登录验证是否安装成功。

  1. cmd到redis目录,启动redis服务
  2. 设置密码:
127.0.0.1:6379> config set requirepass 123456
OK   
  • 1
  • 2
  1. 尝试登录
redis 127.0.0.1:6379> AUTH 123456 
OK
  • 1
  • 2

登录成功。

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号