Redis Configuration - Linux
/etc/systemd/redis-server.service
Quick Actions
๐ฅ Download Original redis-server.serviceConfiguration File Information
Authentic & Original
Unaltered redis-server.service from fresh installation.
Linux Distribution Support
๐ Currently viewing: Ubuntu 22.04 LTS (Jammy Jellyfish)
โ Also compatible:
Debian 11 (Bullseye),
โ Different versions:
Configuration File Content
46 lines
[Unit]
Description=Advanced key-value store
After=network.target
Documentation=http://redis.io/documentation, man:redis-server(1)
[Service]
Type=notify
ExecStart=/usr/bin/redis-server /etc/redis/redis.conf --supervised systemd --daemonize no
PIDFile=/run/redis/redis-server.pid
TimeoutStopSec=0
Restart=always
User=redis
Group=redis
RuntimeDirectory=redis
RuntimeDirectoryMode=2755
UMask=007
PrivateTmp=yes
LimitNOFILE=65535
PrivateDevices=yes
ProtectHome=yes
ReadOnlyDirectories=/
ReadWritePaths=-/var/lib/redis
ReadWritePaths=-/var/log/redis
ReadWritePaths=-/var/run/redis
NoNewPrivileges=true
CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE
MemoryDenyWriteExecute=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
RestrictRealtime=true
RestrictNamespaces=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
# redis-server can write to its own config file when in cluster mode so we
# permit writing there by default. If you are not using this feature, it is
# recommended that you replace the following lines with "ProtectSystem=full".
ProtectSystem=true
ReadWriteDirectories=-/etc/redis
[Install]
WantedBy=multi-user.target
Alias=redis.service
Download Commands
redis-server.service โข
Download the 100% original unaltered configuration file pulled from Redis
Using wget:
wget -O redis-server.service.example https://exampleconfig.com/api/v1/config/original/3b51a85da7c9f1caf3bd42fbb813984e?hint=redis-server.service
Using curl:
curl https://exampleconfig.com/api/v1/config/original/3b51a85da7c9f1caf3bd42fbb813984e?hint=redis-server.service > redis-server.service.example
Related Configuration Files
/etc/systemd/redis-server.service
Redis ยท Debian 9 (Stretch)
/etc/systemd/redis-server.service
Redis ยท Debian 9 (Stretch)
/etc/systemd/redis-server.service
Redis ยท CentOS Stream 9
/etc/systemd/redis-server.service
Apache HTTP Server ยท Ubuntu 22.04 LTS (Jammy Jellyfish)
/etc/systemd/redis-server.service
Apache HTTP Server ยท Ubuntu 22.04 LTS (Jammy Jellyfish)
/etc/systemd/redis-server.service
Apache HTTP Server ยท Ubuntu 22.04 LTS (Jammy Jellyfish)