In this article we will discuss how to Install Redis on Debian 10 (Buster). Redis is an Open Source in-memory data structure store. It can be used as a message broker, a database server, or for caching data in memory for faster retrieval.

Redis has support for the following data structures:

  • Hashes
  • sets with range queries
  • Strings
  • sorted lists
  • Hyperloglogs
  • Bitmaps
  • Geospatial indexes e.t.c

Use below simple and easy steps to install Redis on Debian 10 Buster Linux server or Desktop.

Step 1: Update Debian 10 system

Login to your server where you’ll install Redis and run the commands below.

sudo apt -y update
sudo apt -y upgrade

Step 2: Install Redis on Debian 10 Buster

The default Debian apt repositories have redis server packages. The following commands should be sufficient for the installation.

sudo apt -y install redis-server

Once the package is installed, start it and set start at boot for the service.

sudo systemctl enable --now redis-server.service

Step 3: Configure Redis on Debian 10 Buster

The main Redis configuration file is located in /etc/redis/redis.conf. The default configuration parameters should work fine for simple installations. If you want to tune your Redis setup on Debian 10, you’ll have to make some changes.

sudo vim /etc/redis/redis.conf

Enable network Listen for Redis Service (Optional)

For network clients to connect to your Redis server, it needs the service to listen on a network IP Address.

Open the file /etc/redis/redis.conf with your favorite text editor

sudo vim /etc/redis/redis.conf

Then change line  bind to your server IP address, e.g.


To allow listen on all interfaces, use:


Restart redis service after making the change:

sudo systemctl restart redis-server

Configure Redis Authentication – (Optional but recommended)

Configure Redis Authentication for clients to require AUTH <PASSWORD> before processing any other commands.

requirepass  <AuthPassword>


requirepass oOlaiY90BA

Set Redis Persistent Store for Recovery (Optional)

Set persistence mode by changing the appendonlyvalue to yes

appendonly yes
appendfilename "appendonly.aof"

Restart redis service after making the changes

sudo systemctl restart redis-server

Confirm service is running:

Step 4: Test connection to Redis Server

Confirm that you can connect to redis locally:

$ redis-cli>

Test authenticate:> AUTH <AuthPassword>

You should receive OK in the output. If you input a wrong password, Authentication should fail:> AUTH WrongPassword
(error) ERR invalid password

Check redis information.>  INFO

This will output a long list of data. You can limit the output by passing Section as an argument.> INFO Server
# Server
os:Linux 4.19.0-4-amd64 x86_64

Enjoy using Redis on Debian 10 Buster and check our monitoring guide:

How to Monitor Redis Server with Prometheus and Grafana in 5 minutes

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here