I第一次提交
This commit is contained in:
37
docker/redis/redis.conf
Normal file
37
docker/redis/redis.conf
Normal file
@@ -0,0 +1,37 @@
|
||||
# Redis配置文件 - 适用于Docker环境
|
||||
|
||||
# 网络配置
|
||||
bind 0.0.0.0
|
||||
port 6379
|
||||
timeout 0
|
||||
tcp-keepalive 300
|
||||
|
||||
# 内存管理
|
||||
maxmemory 256mb
|
||||
maxmemory-policy allkeys-lru
|
||||
|
||||
# 持久化
|
||||
save 900 1
|
||||
save 300 10
|
||||
save 60 10000
|
||||
|
||||
# 日志
|
||||
loglevel notice
|
||||
logfile ""
|
||||
|
||||
# 安全
|
||||
protected-mode no
|
||||
requirepass ""
|
||||
|
||||
# 其他优化
|
||||
tcp-backlog 511
|
||||
databases 16
|
||||
|
||||
# AOF持久化
|
||||
appendonly yes
|
||||
appendfilename "appendonly.aof"
|
||||
appendfsync everysec
|
||||
|
||||
# 慢日志
|
||||
slowlog-log-slower-than 10000
|
||||
slowlog-max-len 128
|
||||
Reference in New Issue
Block a user