赞
踩
java项目启动之后,报ERR Client sent AUTH, but no password is set,就是需要认证。
在yml文件里,我的redis配置有password
属性,但是没有值,这就是问题所在
①去掉password这个属性
②给redis配置密码,配置密码:在redis安装目录下的
redis.conf文件
或redis.windows.conf
文件进行密码配置。
注意:配置的时候别忘了去掉前面的 #
号,如果你配置的是 redis.windows.conf
,需要在redis安装文件夹cmd启动。
redis-server.exe redis.windows.conf //这就是启动redis让redis.windows.conf成为配置文件
requirepass 你的密码
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。