Redis 在 docker 上不起作用:无法从服务器读取响应



一旦Redis启动/重启它工作正常;然而,一段时间后,它停止工作。然而,在日志中可以看到以下内容:

1:S 11 Nov 2022 08:32:57.889 * Connecting to MASTER xxxxx:xxxx
1:S 11 Nov 2022 08:32:57.889 * MASTER <-> REPLICA sync started
1:S 11 Nov 2022 08:32:58.025 * Non blocking connect for SYNC fired the event.
1:S 11 Nov 2022 08:32:58.164 # Failed to read response from the server: Connection reset by peer
1:S 11 Nov 2022 08:32:58.164 # Master did not respond to command during SYNC handshake

(IP在安全方面已被隐藏)

Redis是通过docker使用标准配置启动的。

这个错误可以用什么方法解决?

我尝试设置密码,但是没有帮助

只要启用protected_mode和password,问题就解决了

最新更新