laravel - Predis: Error while reading line from the server. [tcp://127.0.0.1:6379]
问题描述
I've been trying to deploy a Laravel
application using Forge
for a while now, but I always get stuck on Predis
giving me the following error:
Predis\Connection\ConnectionException Error while reading line from the server. [tcp://127.0.0.1:6379]
And everywhere I look the fix appears to be read_write_timeout
to -1
or 0
in config/database.php
, however this doesn't fix the issue for me. I've cleared all caches (manually and via Artisan) but the error remains.
So basically whatever fix I try and apply, the error remains.
解决方案
你能检查一下你的服务器上是否安装了Redis吗?
推荐阅读
- symfony - 如何在共享主机上安装 Composer 以便于部署
- exception - Flutter web - 调用 http.get 抛出异常
- sql-server - 根据存储在表中的表和列信息动态构建 SQL 查询
- perl - 如何在数据数组中使用for循环
- fortran - ld:找不到-lgfortranbegin
- elasticsearch - ELK 堆栈中的新字段 - logstash
- sql - 需要有可以为任何动态给定查询生成 CSV 文件的 SSIS 包
- c# - 素数查找器 C#
- mysql - SQL 键,外键有点太锁定了
- c++ - arg 方向的“in”和“out”是什么意思?