首页 > 解决方案 > 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.

标签: laravelredisforgepredis

解决方案


你能检查一下你的服务器上是否安装了Redis吗?


推荐阅读