Back to search
redis.conf
config databaseRedis server configuration
/etc/redis/redis.conf
Required Packages
sudo apt install -y redis-server Network
127.0.0.1 for local only, 0.0.0.0 for all interfaces
Close idle connections after N seconds (0 = disabled)
Security
Require clients to authenticate (CRITICAL for security)
Logging
General
Memory
e.g. 256mb, 1gb. Empty = no limit
Persistence
Generated Config — /etc/redis/redis.conf
bind 127.0.0.1 -::1 port 6379 protected-mode yes # Security # Logging loglevel notice # General databases 16 # Memory # Persistence save 3600 1 save 300 100 save 60 10000 appendonly no