Redis:访问redis报错(error) NOAUTH Authentication required

Redis:访问redis报错(error) NOAUTH Authentication required

 

image

 

确认Redis服务器的认证设置

打开Redis的配置文件(一般是redis.conf),查找以下行:

requirepass yourpassword

如果前面有#,表示被注释掉了,表示认证是关闭的。否则需要提供密码。

重启redis服务。再次执行keys *命令,显示正常