無法 cURL 到 redis

無法 cURL 到 redis

我在連接埠 9443 上收到連線拒絕錯誤。我沒有找到任何其他需要設定的配置。它沒有使用 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.

相關內容