本文来源:redis客户端连接错误 NOAUTH Authentication required_Redis_脚本之家
redis客户端连接成功,但是操作报异常——(error) NOAUTH Authentication required
错误的含义是说你没有认证,说明没有使用密码连接
查看密码:
进入redis的安装目录,查看redis.config文件, vi redis.conf
。
打开配置文件后,输入 /requirepass
, 查找requirepass,看到后面跟着的就是密码了,如下图所示:
红框里的就是密码,密码就是 PasswOrd。
使用密码连接:
./redis-cli -h 127.0.0.1 -p 6379 -a Passw0rd
或者先./redis-cli 连上命令行,之后再在命令行输入 auth Passw0rd
。
再操作就没问题了。
- 中报 Authentication required 命令 NOAUTH中报authentication required命令 authentication required办法noauth authentication-required authentication-required authentication required authentication required profile managed authentication repositories required refresh authentication authorized analyzing requires authentication sprintboot required resource noauth 中报