mirror of
https://fastgit.cc/github.com/WeChatPadPro/WeChatPadPro
synced 2026-05-01 06:17:51 +08:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
# Basic settings
|
|
bind 0.0.0.0
|
|
protected-mode yes
|
|
port 6379
|
|
requirepass 123456
|
|
|
|
# Persistence settings
|
|
appendonly yes
|
|
appendfilename "appendonly.aof"
|
|
appendfsync everysec
|
|
|
|
# Memory settings
|
|
maxmemory 4gb
|
|
maxmemory-policy allkeys-lru
|
|
|
|
# Connection settings
|
|
timeout 0
|
|
tcp-keepalive 300
|
|
databases 16
|
|
|
|
# Log settings
|
|
loglevel notice
|
|
logfile "/var/log/redis/redis-server.log"
|
|
|
|
# Performance optimizations
|
|
activerehashing yes
|
|
no-appendfsync-on-rewrite yes
|
|
auto-aof-rewrite-percentage 100
|
|
auto-aof-rewrite-min-size 64mb
|