Skip to content

redis.conf

Calin Crisan edited this page Nov 20, 2022 · 3 revisions

File Location And Role

The file lives at /data/etc/redis.conf. It can be provisioned using /boot/redis.conf and uses /etc/redis.conf as a default. The file is not present by default and should be created by the user, if redis is needed.

If the file is present, the redis-server daemon will be started to run the Redis server on your system.

Note that redis package is not enabled by default in thingOS. You'll need to enable it in your configurations to have this functionality.

File Format

Here are some details on the file format.

Example

bind 127.0.0.1
protected-mode yes
port 6379
tcp-backlog 16
timeout 0
tcp-keepalive 300

maxmemory 128M
maxmemory-policy noeviction

daemonize yes
supervised no

pidfile /var/run/redis.pid
loglevel notice
logfile /var/log/redis.log

databases 2
save 10 2
stop-writes-on-bgsave-error yes
rdbcompression yes
dir /var/lib/redis/
dbfilename dump.rdb

appendonly no
appendfilename appendonly.aof
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
Clone this wiki locally