Get Started with Redis on Ubuntu 24.04: Installation Made Simple
Redis is a powerful, in-memory key-value data store used for caching, real-time analytics, message brokering, and more. Its blazing speed and simple architecture make it a favorite among developers building high-performance applications. If you're running Ubuntu 24.04 and wondering how to install Redis in Ubuntu, this guide will walk you through the installation process quickly and efficiently.
This article simplifies Redis installation based on the detailed steps outlined in the Vultr documentation, making it beginner-friendly yet production-ready.
Why Choose Redis?
Before diving into the installation, let’s briefly understand why Redis is so widely used:
Lightning Fast Performance Redis processes millions of requests per second with sub-millisecond latency.
Versatile Data Types It supports strings, hashes, lists, sets, sorted sets, bitmaps, and more.
Persistence Options Redis can store data in memory and persist it to disk using snapshots or append-only files.
Scalability and Replication Built-in replication and clustering features allow Redis to scale easily.
Prerequisites
Ensure your Ubuntu 24.04 system is updated and has root or sudo privileges. Open your terminal and run:
sudo apt update && sudo apt upgrade -y
Step 1: Install Redis on Ubuntu 24.04
Redis is available in the default Ubuntu repository, so installing it is straightforward:
sudo apt install redis-server -y
This command will download and install Redis and its required dependencies.
Step 2: Verify Redis Installation
After installation, check the version to ensure Redis is installed correctly:
redis-server --version
This should output something like:
Redis server v=7.0.0 sha=...
You can also confirm that the Redis service is running:
sudo systemctl status redis
The status should show that the Redis service is active and running.
Step 3: Configure Redis for Systemd
By default, Redis uses the supervised no option in its configuration file. For systemd integration, edit the configuration file:
sudo nano /etc/redis/redis.conf
Find the line:
supervised no
And change it to:
supervised systemd
Save and exit the file (Ctrl + X, then Y, and Enter).
Then restart Redis to apply changes:
sudo systemctl restart redis
Step 4: Enable Redis on Boot
To ensure Redis starts automatically at boot time:
sudo systemctl enable redis
Step 5: Test Redis with CLI
You can use the built-in Redis CLI to verify everything is working:
redis-cli
Then run the following command:
ping
If Redis is running, it will return:
PONG
This confirms that Redis is up and responsive.
Step 6: Optional - Secure Your Redis Installation
Although Redis is designed to run on localhost, securing your installation is a good practice—especially if you plan to use it in production. Here are a few tips:
Bind Redis only to localhost in /etc/redis/redis.conf: bind 127.0.0.1 ::1
Set a password using: requirepass YourStrongPassword
Disable dangerous commands like FLUSHALL if not needed.
After making changes, restart Redis:
sudo systemctl restart redis
Conclusion
Learning how to install Redis in Ubuntu is essential for developers looking to boost application performance with a fast, flexible, and efficient data store. By following the steps above, you’ve successfully installed and configured Redis on Ubuntu 24.04.
For more advanced settings, security hardening, and scaling options, refer to the Vultr guide. Redis is now ready to support your real-time apps, analytics engines, and caching layers—right from your Ubuntu 24.04 server.

