![cover](https://img-blog.csdnimg.cn/380872a618f547f3ad16f06e0036f21b.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBA6K-35ZGK6K-J5LuW,size_20,color_FFFFFF,t_70,g_se,x_16)
io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.
在不带配置文件启动reids,配置文件配置的密码是不起作用的示范如下:1、执行auth 123456会出现(error) ERR Client sent AUTH, but no password is set的错误D:\Redis>redis-cli.exe127.0.0.1:6379> auth 123456(error) ERR Client sent AUTH, but no
·
在不带配置文件启动redis,配置文件配置的密码是不起作用的
示范如下:
1、执行auth 123456
会出现(error) ERR Client sent AUTH, but no password is set的错误
D:\Redis>redis-cli.exe
127.0.0.1:6379> auth 123456
(error) ERR Client sent AUTH, but no password is set
2、继续通过执行 config get requirepass ,得知两个结果
127.0.0.1:6379> config get requirepass
1) "requirepass"
2) ""
上面的1中的执行报错,并没有将123456设置成功
需要设置一个验证密码:123456
执行如下
127.0.0.1:6379> config set requirepass 123456
OK
查看结果:成功了
127.0.0.1:6379> config get requirepass
1) "requirepass"
2) "123456"
下图是实验过程
更多推荐
所有评论(0)