Databases 5 min read

Step-by-Step Guide to Deploying Redis 6.2.6 on Linux with Systemd

This tutorial walks through downloading, compiling, installing, configuring, and setting up Redis 6.2.6 as a systemd service on a Linux server, including key configuration changes and commands to start the server and enable it at boot.

Practical DevOps Architecture
Practical DevOps Architecture
Practical DevOps Architecture
Step-by-Step Guide to Deploying Redis 6.2.6 on Linux with Systemd

Download the Redis 6.2.6 source package, compile it, and install it to /usr/local/redis:

wget https://download.redis.io/releases/redis-6.2.6.tar.gz
make
make install PREFIX=/usr/local/redis

Copy the default configuration file and edit important settings such as protected-mode no, port 6379, daemonize yes, persistence options, and memory limits to suit your environment.

Example configuration excerpts:

protected-mode no
port 6379
daemonize yes
loglevel notice
databases 16

After adjusting redis.conf, start the server with:

/usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf

Create a systemd service file to manage Redis as a background service:

[Unit]
Description=redis-server
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf
PrivateTmp=true
[Install]
WantedBy=multi-user.target

Reload systemd, start and enable the service:

systemctl daemon-reload
systemctl start redis.service
systemctl enable redis.service

The guide also includes promotional text encouraging readers to follow a WeChat account and share the post, but the technical steps above constitute the core instructional content.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

databaseredisConfigurationlinuxInstallation
Practical DevOps Architecture
Written by

Practical DevOps Architecture

Hands‑on DevOps operations using Docker, K8s, Jenkins, and Ansible—empowering ops professionals to grow together through sharing, discussion, knowledge consolidation, and continuous improvement.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.