
Connection timed out [tcp://127.0.0.1:6379]
// config/cache.php 缓存配置文件
<?php
// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------
return [
// 默认缓存驱动
'default' => env('cache.driver', 'file'),
// 缓存连接方式配置
'stores' => [
'file' => [
// 驱动方式
'type' => 'File',
// 缓存保存目录
'path'

在Linux环境下,使用ThinkPHP6进行开发时遇到Redis连接超时的问题。原本配置的timeout=0表示无超时限制,但实际出现连通性问题。解决方法是设置一个合理的超时时间。
最低0.47元/天 解锁文章
757

被折叠的 条评论
为什么被折叠?



