[Redis]ResponseError: Client sent AUTH, but no password is set

由于在代码中给redis添加了密码,如下

redis_store = redis.Redis(host='localhost', port=6379, db=4, password='root')

然而redis.conf中并没有设置密码,因此报ResponseError: Client sent AUTH, but no password is set

解决方法:将password字段去除即可 

posted @ 2017-12-21 09:37  milian0711  阅读(6057)  评论(1编辑  收藏  举报