如题, 项目中使用phpredis链接 redis,偶尔报如下错误:
PHP Fatal error: Uncaught exception 'RedisException' with message 'Failed to AUTH connection' in [no active file]:0
Stack trace:
#0 {main}
thrown in [no active file] on line 0"
check过项目的配置信息正确,此错误信息为偶尔出现
项目中使用redis处理session
在github的issues中发现有人遇到类似的问题,但也没有给出现的原因和怎么解决,传送门github
各位在项目中有遇到类似的问题的嘛, 还是直接使用 predis这个扩展呢?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
纯粹吐槽,phpredis 这个扩展是越来越蛋疼了。。。。
看错误是授权相关的错误,检查一下是否是Redis有密码,如果是集群部署的话,是否环境不一致
提示的鉴权失败么