Files
2026-06-12 11:48:17 +08:00

36 lines
719 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 允许本地和 Docker 网络连接
bind 0.0.0.0
# 禁用保护模式(如果仅绑定到本地地址,则可以禁用保护模式)
protected-mode no
# 设置 Redis 密码
requirepass Rds123!@$
# 监听端口(默认是 6379
port 6379
# 后台运行(Docker 中通常不需要启用,保持注释即可)
# daemonize no
# 日志级别
loglevel notice
# 日志文件路径(Docker 中通常输出到标准输出,保持注释即可)
# logfile ""
# 数据持久化配置(可选)
# RDB 持久化
save 900 1
save 300 10
save 60 10000
# AOF 持久化(可选)
appendonly yes
# 最大内存限制(可选)
# maxmemory 1gb
# 内存淘汰策略(可选)
# maxmemory-policy allkeys-lru