stock-monitor/docker/redis.conf
2025-11-17 10:21:33 +08:00

40 lines
553 B
Plaintext

# Redis生产环境配置
# 网络配置
bind 0.0.0.0
port 6379
# 内存配置
maxmemory 256mb
maxmemory-policy allkeys-lru
# 持久化配置
save 900 1
save 300 10
save 60 10000
rdbcompression yes
rdbchecksum yes
# 安全配置
requirepass redis_password_here
# 日志配置
loglevel notice
logfile ""
# 性能优化
tcp-keepalive 300
timeout 0
tcp-backlog 511
# 客户端配置
maxclients 10000
# AOF配置
appendonly yes
appendfilename "appendonly.aof"
appendfsync everysec
# 慢查询日志
slowlog-log-slower-than 10000
slowlog-max-len 128