![](/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.