redis,

How to install Redis on Debian 11

Sep 29, 2021 · 1 min read · Post a comment
How to install Redis on Debian 11

Improving your site performance and caching your content can be achieved with Redis which stands as one of the most popular caching tools nowadays. How the complexity of the application grows, the need for cached content is raging higher as well. Let’s see how can you install Redis on Debian 11.

Prerequisites

  • Debian 11

Install Redis on Debian 11

Step 1. Make sure that the system is up to date:

sudo apt update

Step 2. Once you get all the updated packages, you can install Redis with:

sudo apt install redis-server

Step 3. Enable and start the Redis service:

systemctl enable redis-server
systemctl start redis-server

To check the status execute:

systemctl status redis-server

Step 4. Execute some basic redis commands to test the installation:

redis-cli
> ping

Output:

127.0.0.1:6379> ping
PONG

Conclusion

Installing Redis on Debian 11 is a straightforward procedure and as a start-point can help you to dive into more complex scenarios. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on telegram.