![](/img/trans.png)
[英]Redis “Error while reading line from the server.” after Laravel 5.6 upgrade
[英]Lumen Redis queue connection error. Error while reading line from the server. [tcp://xxxxxx:25061]
我正在尝试在 Lumen 8.0 中使用 redis 作为 QUEUE_CONNECTION。
如果我使用来自本地服务器的 redis [127.0.0.1:6379] 那么它工作正常。 但我想使用来自 Digital Ocean 的外部 redis 服务器。
这是我在config/queue.php
中的config/queue.php
'redis' => [
'driver' => 'redis',
'connection' => env('QUEUE_REDIS_CONNECTION', 'default'),
'queue' => 'default',
'retry_after' => 90,
'block_for' => null,
'read_write_timeout' => -1,
]
但我收到此错误:
我已经安装了这些软件包:
"predis/predis": "^1.1",
"aws/aws-sdk-php": "~3.0",
"illuminate/redis": "^8.25"
同样在.env
文件中配置如下:
REDIS_CLIENT=predis
REDIS_HOST="this.is.my.redis.server.ondigitalocean.com"
REDIS_PASSWORD=xxxxxxxx
REDIS_PORT=25061
REDIS_SCHEME=tls
我还缺什么吗?
确保该端口在 Droplet 的防火墙上是允许的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.