首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >6.1.4:未安装或配置错误的Redis

6.1.4:未安装或配置错误的Redis
EN

Stack Overflow用户
提问于 2022-08-24 16:01:17
回答 1查看 90关注 0票数 0

phpfastcache v6.1.4和redis通过Kubernetes运行在默认端口6379上。

代码语言:javascript
复制
PHP Fatal error:  Uncaught phpFastCache\Exceptions\phpFastCacheDriverCheckException: Redis is not installed or is misconfigured, cannot continue. 
Also, please verify the suggested dependencies in composer because as of the V6, 3rd party libraries are no longer required. in /Users/my-path/vendor/phpfastcache/phpfastcache/src/phpFastCache/Drivers/Redis/Driver.php:46

config.php里。

代码语言:javascript
复制
return [
    'driver' => 'redis',
    'maxRetries' => 3,
    'config' => [
        'defaultTtl' => 900,
        'host' => 'localhost',
        'port' => 6379,
        'database' => 11,
        'password' => 'some password',
        'timeout' => 3,
    ],
];

那么如何正确地设置Redis配置呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-08-25 14:42:39

我在吉顿讨论这里上回答了你。

您要么错过了php.ini扩展,要么错过了php.ini配置。

但是,不再支持pfc的6.1.4版本,我强烈鼓励您升级到8.1或9.x。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73476315

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档