redis部署报错 Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.
NOAUTH Authentication required. 意思是不需要身份验证
首先先检查部署时进行的配置详情可查看:阿里云centos7安装redis
1.下载安装的redis默认是没有密码的。设置密码之后需要密码认证。
密码设置: 在配置文件 redis.conf 中将 requirepass foobared前的“#”去掉,密码改为你想要设置的密码 如:requirepass 123456
2.redis的配置文件 redis.conf
vim redis.conf
修改 protected-mode yes 改为:protected-mode no
默认为不守护进程模式,把daemonize no 改为daemonize yes
注释掉 #bind 127.0.0.1 ,外网连接可设置 bind 0.0.0.0