Menu

How to Install Redis on Ubuntu 20.04 (Legacy Guide)

Legacy Redis installation notes for Ubuntu 20.04; standard support ended in 2025, while Ubuntu Pro ESM requires an active subscription.

Posted on By Updated on
On this page

Legacy system: Ubuntu 20.04 LTS standard security maintenance ended on May 31, 2025. Ubuntu Pro can provide Expanded Security Maintenance (ESM) through May 2030, but requires an attached subscription and enabled ESM services. Check pro status and confirm the Redis package is covered before relying on further security updates. See Canonical’s Ubuntu 20.04 support lifecycle and ESM documentation.

Do not use Ubuntu 20.04 for a new Redis deployment. Follow the official Redis Linux installation guide on a supported operating system instead.

This page preserves a historical APT procedure for maintaining an existing Ubuntu 20.04 host only when its package source is approved and covered by your organization’s support arrangement:

sudo apt update
sudo apt install redis-server

If APT cannot locate the package, or the configured source does not provide supported security updates, consult the system administrator. Do not add unverified archives or mirrors.

Start and test the service

sudo systemctl enable --now redis-server
sudo systemctl status redis-server

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.