我想要redis的配置文件
时间: 2023-06-02 11:04:11 浏览: 110
很好的问题,以下是redis的配置文件模板,你可以根据需要进行修改:
```
# Redis configuration file
# General
daemonize yes
pidfile /var/run/redis.pid
logfile /var/log/redis/redis.log
# Networking
port 6379
bind 0.0.0.0
tcp-backlog 511
# Memory Management
maxmemory <bytes>
maxmemory-policy allkeys-lru
# Persistence
save 900 1
save 300 10
save 60 10000
appendonly yes
appendfilename "appendonly.aof"
appendfsync everysec
# Security
requirepass <password>
# Other
databases 16
timeout 0
```
阅读全文