无法将 cURL 连接到 redis

无法将 cURL 连接到 redis

我在端口 9443 上收到拒绝连接错误。redis-server 肯定正在运行,版本 7.2.4。我没有找到需要设置的任何其他配置。它没有使用 docker 映像。我尝试允许端口 ufw,但似乎没有什么不同。

看起来ss -tlnp | grep redis如下:

LISTEN    0         511              127.0.0.1:6379             0.0.0.0:*        users:(("redis-server",pid=3281773,fd=6))
LISTEN    0         511                  [::1]:6379                [::]:*        users:(("redis-server",pid=3281773,fd=7))

所以看起来它只是 redis-cli 端口。

这是我开始以来的日志:

3281773:C 17 Jan 2024 00:35:56.088 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
3281773:C 17 Jan 2024 00:35:56.088 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=3281773, just started
3281773:C 17 Jan 2024 00:35:56.088 * Configuration loaded
3281773:M 17 Jan 2024 00:35:56.089 * monotonic clock: POSIX clock_gettime
3281773:M 17 Jan 2024 00:35:56.090 * Running mode=standalone, port=6379.
3281773:M 17 Jan 2024 00:35:56.091 * Server initialized
3281773:M 17 Jan 2024 00:35:56.091 * Loading RDB produced by version 7.2.4
3281773:M 17 Jan 2024 00:35:56.091 * RDB age 1 seconds
3281773:M 17 Jan 2024 00:35:56.091 * RDB memory usage when created 0.87 Mb
3281773:M 17 Jan 2024 00:35:56.091 * Done loading RDB, keys loaded: 1, keys expired: 0.
3281773:M 17 Jan 2024 00:35:56.091 * DB loaded from disk: 0.000 seconds
3281773:M 17 Jan 2024 00:35:56.091 * Ready to accept connections tcp
3281773:M 17 Jan 2024 00:40:42.912 * CONFIG REWRITE executed with success.

相关内容