Menu

How to Install Redis on CentOS Stream 8 (Legacy Guide)

Legacy Redis guide for CentOS Stream 8 (EOL 2024); use a supported Linux release for new deployments.

Posted on By Updated on
On this page

Legacy system: CentOS Stream 8 ended regular support on 2024-05-31, as listed by the CentOS Project. Routine updates for this release are no longer provided. Running dnf update does not restore current security support. Do not use it for a new Redis deployment. For a supported RPM-based option, see Redis on Rocky Linux 9 or follow the official Redis Linux installation guide.

This page preserves a historical package-based procedure for maintaining an existing host when your organization still provides an approved repository. Redis package availability and versions depend on that source; these steps do not imply that the operating system or package is currently supported.

Install Redis from an available package source

If a trusted, approved repository configured for the existing host provides Redis, install it with:

sudo dnf install redis

If the package is unavailable, consult the repository administrator. Do not switch to unverified archives or third-party mirrors for a production server.

Start and test the service

sudo systemctl enable --now redis
sudo systemctl status redis

Test the local service with the Redis client:

redis-cli PING

A healthy local server responds with:

PONG

Secure the Redis endpoint

Keep Redis accessible only to trusted application hosts. Before allowing remote connections, verify the listening interfaces, authentication or ACL configuration, and firewall rules. Do not expose TCP port 6379 directly to the public internet. See the official Redis security guide.

For a maintained Linux installation, see Redis Open Source installation instructions.