安装Redis之后,报(error) ERR Client sent AUTH, but no password is set

Win10下,在安装完成Redis后,需要登录auth账户,验证是否安装成功。

在redis目录下redis.windows-service.conf文件找到requirepass,追加一行,输入requirepass 123456,即为登录密码,重启redis服务再登录即可。但是我并没有成功,后来发现是需要在命令行设置密码才行

解决步骤如下:
1、启动redis服务

2、cmd命令行切换至Redis的文件夹中redis-cli目录或者点击redis-cli右击以管理员身份运行,打开命令窗口

?C:\Users\guifang.feng>cd C:\Tools\redis-64.3.0.503

3、查看是否设置了密码:

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

4、需要命令设置密码,命令如下:

127.0.0.1:6379> config set requirepass 12345

OK

出现OK了,说明设置成功

5、再尝试登录
redis 127.0.0.1:6379> AUTH 123456

(error) ERR invalid password

仔细看,发现密码输入跟前面设置的不一样,需要仔细!!!

6、再次登录,可以登录成功
redis 127.0.0.1:6379> AUTH 123456
OK

原文地址:https://www.cnblogs.com/fenggf/p/12056268.html

时间: 2024-08-30 07:57:50

安装Redis之后,报(error) ERR Client sent AUTH, but no password is set的相关文章

Tomcat redis session manager connect redis show: ERR Client sent AUTH, but no password is set

解决问题redis问题:ERR Client sent AUTH, but no password is set - 东篱煮酒 - 博客园https://www.cnblogs.com/niepeishen/p/6371270.html authentication - ERR Client sent AUTH, but no password is set - Stack Overflowhttps://stackoverflow.com/questions/44598321/err-clie

redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set

1.项目启动报错: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool redis.clients.util.Pool.getResource(Pool.java:50) redis.clients.jedis.JedisPool.getResource(JedisPool.java:88) com.radiadesign.catalina.session.

Redis错误:jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set

原文链接:http://blog.csdn.net/rchm8519/article/details/48347797 redis.clients.util.Pool.getResource(Pool.Java:50)redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)com.radiadesign.catalina.session.RedisSessionManager.acquireConnection(RedisSessi

Java链接Redis时出现 “ERR Client sent AUTH, but no password is set” 异常的原因及解决办法

[错误提示] redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the poolat redis.clients.util.Pool.getResource(Pool.java:53)at redis.clients.jedis.JedisPool.getResource(JedisPool.java:226)at cn.hncu.RedisPool.getJedis(Re

Java链接Redis时出现 “ERR Client sent AUTH, but no password is set”

Java链接Redis时出现 “ERR Client sent AUTH, but no password is set” 异常的原因及解决办法 [错误提示] redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the poolat redis.clients.util.Pool.getResource(Pool.java:53) at redis.clients.jedis

解决ERR Client sent AUTH, but no password is set

在搭建cookies池时,需要将账号密码保存到redis,保存时报错:ERR Client sent AUTH, but no password is set 报错原因:Redis服务器没有设置密码,但客户端向其发送了AUTH(authentication,身份验证)请求. 解决方法:设置密码,并指定配置文件进行启动redis. 原文地址:https://www.cnblogs.com/2sheep2simple/p/10346969.html

[Redis]ResponseError: Client sent AUTH, but no password is set

由于在代码中给redis添加了密码,如下 redis_store = redis.Redis(host='localhost', port=6379, db=4, password='root') 然而redis.conf中并没有设置密码,因此报ResponseError: Client sent AUTH, but no password is set 解决方法:将password字段去除即可

安装aptana插件报Error opening the editor. java.lang.NullPointerException

Aptana的官方网站下载eclipse的插件:  http://update.aptana.com/update/studio/3.2/ ,可以在线安装也可以下载插件后再安装,我是以在线的形式安装的. 但是安装完成之后,重启MyEclipse报下面的错误!! Error opening the editor. java.lang.NullPointerException 这个问题解决起来很简单, 打开myeclipse->Preference->Aptana->MyAptana/Mes

redis 集群新增节点,slots槽分配,删除节点, [ERR] Calling MIGRATE ERR Syntax error, try CLIENT (LIST | KILL | GET...

redis reshard 重新分槽(slots) https://github.com/antirez/redis/issues/5029 redis 官方已确认该bug redis 集群重新(reshard)分片故障 [ERR] Calling MIGRATE ERR Syntax error, try CLIENT (LIST | KILL | GETNAME | SETNAME | PAUSE | REPLY) 错误背景描述 redis版本:4.0.1 ruby gem reids 版本