Need to migrate your e-mails to a new server? Free and paid versions of our online tool available.
Hero Image

Redis

Install Redis on AlmaLinux 9

Install Redis on AlmaLinux 9

Step 1 – Install

dnf install epel-release -y
dnf install -y redis
systemctl enable --now redis

Step 2 – Verify

redis-cli ping   # PONG

Step 3 – Bind and password (/etc/redis/redis.conf)

bind 127.0.0.1 ::1
requirepass StrongRedisPass!

Restart, then:

redi...
7th May 2026

Install Redis on RHEL 9

Install Redis on RHEL 9

Step 1 – Install

subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
dnf install -y redis
systemctl enable --now redis

Step 2 – Verify

redis-cli ping   # PONG

Step 3 – Bind and password (/etc/redis/redis.conf)

bind 127.0.0.1 ::1
require...
7th May 2026

Install Redis on Ubuntu 24.04

Install Redis on Ubuntu 24.04

Step 1 – Install

apt update && apt upgrade -y
apt install -y redis-server
systemctl enable --now redis-server

Step 2 – Verify

redis-cli ping   # PONG

Step 3 – Bind and password (/etc/redis/redis.conf)

bind 127.0.0.1 ::1
requirepass StrongRedisPass!

Resta...

7th May 2026

Install Redis on Debian 12

Install Redis on Debian 12

Step 1 – Install

apt update && apt upgrade -y
apt install -y redis-server
systemctl enable --now redis-server

Step 2 – Verify

redis-cli ping   # PONG

Step 3 – Bind and password (/etc/redis/redis.conf)

bind 127.0.0.1 ::1
requirepass StrongRedisPass!

Restart,...

7th May 2026

Install Redis on Gentoo Linux

Install Redis on Gentoo Linux

Step 1 – Install

emerge --ask dev-db/redis
rc-update add redis default && rc-service redis start

Step 2 – Verify

redis-cli ping   # PONG

Step 3 – Bind and password (/etc/redis.conf)

bind 127.0.0.1 ::1
requirepass StrongRedisPass!

Restart, then:

redis-c...
7th May 2026

Install Redis on Arch Linux

Install Redis on Arch Linux

Step 1 – Install

pacman -S --noconfirm redis
systemctl enable --now redis

Step 2 – Verify

redis-cli ping   # PONG

Step 3 – Bind and password (/etc/redis/redis.conf)

bind 127.0.0.1 ::1
requirepass StrongRedisPass!

Restart, then:

redis-cli -a StrongRedisPa...
7th May 2026

Install Redis on OpenBSD 7.5

Install Redis on OpenBSD 7.5

Step 1 – Install

pkg_add redis
rcctl enable redis && rcctl start redis

Step 2 – Verify

redis-cli ping   # PONG

Step 3 – Bind and password (/etc/redis/redis.conf)

bind 127.0.0.1 ::1
requirepass StrongRedisPass!

Restart, then:

redis-cli -a StrongRedisPass...
7th May 2026

Install Redis on NetBSD 10

Install Redis on NetBSD 10

Step 1 – Install

pkgin install redis
echo 'redis=YES' >> /etc/rc.conf && service redis start

Step 2 – Verify

redis-cli ping   # PONG

Step 3 – Bind and password (/usr/pkg/etc/redis/redis.conf)

bind 127.0.0.1 ::1
requirepass StrongRedisPass!

Restart, then:

r...
7th May 2026

Redis Persistence on RHEL 9

Redis Persistence on RHEL 9

RDB snapshots (redis.conf)

save 900 1
save 300 10
save 60 10000
dbfilename  dump.rdb
dir         /var/lib/redis
rdbcompression yes
rdbchecksum    yes

AOF (Append-Only File)

appendonly           yes
appendfilename       "appendonly.aof"
appendfsync          every...
7th May 2026

Redis Cluster on AlmaLinux 9

Redis Cluster on AlmaLinux 9

Minimum 3 primaries + 3 replicas (6 nodes). This example uses ports 7000-7005 on localhost.

Step 1 – Create node configs

for port in 7000 7001 7002 7003 7004 7005; do
    mkdir -p /etc/redis/cluster/$port /var/lib/redis/$port
    cat > /etc/redis/cluster/$port/redi...
7th May 2026

Redis Cluster on RHEL 9

Redis Cluster on RHEL 9

Minimum 3 primaries + 3 replicas (6 nodes). This example uses ports 7000-7005 on localhost.

Step 1 – Create node configs

for port in 7000 7001 7002 7003 7004 7005; do
    mkdir -p /etc/redis/cluster/$port /var/lib/redis/$port
    cat > /etc/redis/cluster/$port/redis.con...
7th May 2026

Redis Cluster on Ubuntu 24.04

Redis Cluster on Ubuntu 24.04

Minimum 3 primaries + 3 replicas (6 nodes). This example uses ports 7000-7005 on localhost.

Step 1 – Create node configs

for port in 7000 7001 7002 7003 7004 7005; do
    mkdir -p /etc/redis/cluster/$port /var/lib/redis/$port
    cat > /etc/redis/cluster/$port/red...
7th May 2026

Redis Cluster on Debian 12

Redis Cluster on Debian 12

Minimum 3 primaries + 3 replicas (6 nodes). This example uses ports 7000-7005 on localhost.

Step 1 – Create node configs

for port in 7000 7001 7002 7003 7004 7005; do
    mkdir -p /etc/redis/cluster/$port /var/lib/redis/$port
    cat > /etc/redis/cluster/$port/redis....
7th May 2026

Redis Cluster on Gentoo Linux

Redis Cluster on Gentoo Linux

Minimum 3 primaries + 3 replicas (6 nodes). This example uses ports 7000-7005 on localhost.

Step 1 – Create node configs

for port in 7000 7001 7002 7003 7004 7005; do
    mkdir -p /etc/redis/cluster/$port /var/lib/redis/$port
    cat > /etc/redis/cluster/$port/red...
7th May 2026

Redis Cluster on Arch Linux

Redis Cluster on Arch Linux

Minimum 3 primaries + 3 replicas (6 nodes). This example uses ports 7000-7005 on localhost.

Step 1 – Create node configs

for port in 7000 7001 7002 7003 7004 7005; do
    mkdir -p /etc/redis/cluster/$port /var/lib/redis/$port
    cat > /etc/redis/cluster/$port/redis...
7th May 2026

Redis Cluster on OpenBSD 7.5

Redis Cluster on OpenBSD 7.5

Minimum 3 primaries + 3 replicas (6 nodes). This example uses ports 7000-7005 on localhost.

Step 1 – Create node configs

for port in 7000 7001 7002 7003 7004 7005; do
    mkdir -p /etc/redis/cluster/$port /var/lib/redis/$port
    cat > /etc/redis/cluster/$port/redi...
7th May 2026

Redis Cluster on NetBSD 10

Redis Cluster on NetBSD 10

Minimum 3 primaries + 3 replicas (6 nodes). This example uses ports 7000-7005 on localhost.

Step 1 – Create node configs

for port in 7000 7001 7002 7003 7004 7005; do
    mkdir -p /etc/redis/cluster/$port /var/lib/redis/$port
    cat > /etc/redis/cluster/$port/redis....
7th May 2026

Redis Sentinel (HA) on RHEL 9

Redis Sentinel (HA) on RHEL 9

Architecture

  • Primary 192.168.1.10:6379
  • Replica 192.168.1.11:6379, 192.168.1.12:6379
  • Sentinels on port 26379 (all 3 nodes)

Primary redis.conf

bind 0.0.0.0
requirepass RedisPass!

Replica redis.conf

bind 0.0.0.0
requirepass RedisPass!
replicaof 192.16...
7th May 2026

Redis Sentinel (HA) on Debian 12

Redis Sentinel (HA) on Debian 12

Architecture

  • Primary 192.168.1.10:6379
  • Replica 192.168.1.11:6379, 192.168.1.12:6379
  • Sentinels on port 26379 (all 3 nodes)

Primary redis.conf

bind 0.0.0.0
requirepass RedisPass!

Replica redis.conf

bind 0.0.0.0
requirepass RedisPass!
replicaof 192...
7th May 2026

Redis Sentinel (HA) on Arch Linux

Redis Sentinel (HA) on Arch Linux

Architecture

  • Primary 192.168.1.10:6379
  • Replica 192.168.1.11:6379, 192.168.1.12:6379
  • Sentinels on port 26379 (all 3 nodes)

Primary redis.conf

bind 0.0.0.0
requirepass RedisPass!

Replica redis.conf

bind 0.0.0.0
requirepass RedisPass!
replicaof 19...
7th May 2026

Redis Sentinel (HA) on NetBSD 10

Redis Sentinel (HA) on NetBSD 10

Architecture

  • Primary 192.168.1.10:6379
  • Replica 192.168.1.11:6379, 192.168.1.12:6379
  • Sentinels on port 26379 (all 3 nodes)

Primary redis.conf

bind 0.0.0.0
requirepass RedisPass!

Replica redis.conf

bind 0.0.0.0
requirepass RedisPass!
replicaof 192...
7th May 2026