How to Install Redis on Ubuntu 18.04 (Legacy Guide)
Legacy Redis installation notes for Ubuntu 18.04; standard support ended in 2023, while Ubuntu Pro ESM requires an active subscription.
On this page
Legacy system: Ubuntu 18.04 LTS standard security maintenance ended in May 2023. Ubuntu Pro can provide Expanded Security Maintenance (ESM) through May 2028, but it requires an attached subscription and enabled ESM services. Check
pro statusand confirm the Redis package is covered for your system before relying on security updates. See Canonical’s Ubuntu 18.04 support lifecycle and ESM documentation.
Do not use Ubuntu 18.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 18.04 host only when its package sources are approved and maintained:
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 administrator responsible for the system’s Ubuntu Pro or repository configuration. 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:
PONGSecure 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.