redis报错(error) NOAUTH Authentication required.
来源:互联网 发布:spss 贝叶斯网络示例 编辑:程序博客网 时间:2024/05/16 01:05
刚开始是遇到
RedisException in TestController.php line 62:Failed to AUTH connection
的问题,有说是密码的问题,可是密码一直没换过,以前就能用的,后来搜了下原来是绑定ip的问题。
我的windows环境,直接在服务配置文件redis.windows-service.conf
中的bind
加入要绑定的ip即可,我绑定的是本地的127.0.0.1
。
后来又遇到这个问题,
ConnectionException in AbstractConnection.php line 155:`AUTH` failed: ERR invalid password [tcp://127.0.0.1:6379]
如图:
貌似是redis没有配置密码,而我php里使用的时候用的有密码。
看了下redis服务端的配置文件redis.windows-service.conf
中的requirepass
前面的注释是去掉的配置的有密码,但是再客户端中使用config get requirepass
查看密码为空,不知道怎么回事。
如图:
然后,使用config set requirepass foobared
命令配置密码为foobared
,再使用auth foobared
命令验证一下密码是否正确,如图:
再次访问就可以了,我用的是laravel框架的任务队列,虽然到这里redis没问题了,但是订单自动取消的任务队列却没执行,原来是我忘记开启监听了,开启:php artisan queue:listen
,这下就欧克了。
Author:leedaning
本文地址:http://blog.csdn.net/leedaning/article/details/52100870
0 0
- redis报错(error) NOAUTH Authentication required.
- 解决Redis 报错 NOAUTH Authentication required
- Redis (error) NOAUTH Authentication required
- redis (error) NOAUTH Authentication required.
- Redis (error) NOAUTH Authentication required
- Redis服务停止报错解决方案[NOAUTH Authentication required]
- Redis服务停止报错解决方案[NOAUTH Authentication required]
- 操作redis 报NOAUTH Authentication required
- Redis (error) NOAUTH Authentication required.解决方法
- Redis (error) NOAUTH Authentication required.解决方法
- Redis (error) NOAUTH Authentication required. 解决方法
- Redis (error) NOAUTH Authentication required. 解决方案
- Redis (error) NOAUTH Authentication required.解决方法
- redis客户端连接(error) NOAUTH Authentication required
- NOAUTH Authentication required redis
- noauth authentication required redis
- laravel报错信息:NOAUTH Authentication required.
- redis出现错误:NOAUTH Authentication required.
- 令人头疼的并查集
- android studio SHA1 查找
- Linux中,你一定要掌握的网络基本命令
- 部署android项目的时候adb不能启动问题
- Struts2标签库汇总和OGNL表达式语言
- redis报错(error) NOAUTH Authentication required.
- Android学习第七天---记录一次锁机软件的破解
- java 跳出单层for循环和多层for循环
- POJ-1275/HDU-1529 Cashier Employment
- 拍照、从相册选图并对图片进行裁剪
- oracle 外部表使用详解
- C++ sort函数对class类排序
- Java中Dom4j解析XML
- android videoview播放器