redis, debian,

How to install Redis on Debian 11

Sep 29, 2021 · 1 min read · Post a comment

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
  • sudo privileges

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 by running the following command:

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.