How to Install Redis on Debian 10 Linux

Hello in this tutorial i am going to discuss that how we can  install redis in debian 10 buster. In this example i will install redis via command line interface. I am using debian 10 buster. 

You know that Redis is an open source in memory key-value data store. It is used as a database, cache, and, message broker and supports various data structures such as Strings, Hashes, Lists, Sets, and more. Redis provides us high availability via Redis Sentinel, and automatic partitioning across multiple Redis nodes with Redis Cluster.

Installing Redis on Debian

Redis version 5.0.x is included in the default Debian 10 repositories. To install it run the following commands in your terminal

sudo apt update
sudo apt install redis-server

 

The Redis service will start automatically when the installation is finised. You may verify it by typing:

sudo systemctl status redis-server

 

And you will see the below output

 

install-redis-on-linux-server

 

Configure Redis on Debian 10 Buster

In this section we will see the configuration of redis in debian 10 buster. The Redis configuration file is located in /etc/redis/redis.conf.  If we want to tune our Redis setup on Debian 10, we have to make some changes by the following command.

sudo nano /etc/redis/redis.conf

 

Enable network listen for Redis service (optional)

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

Open the file /etc/redis/redis.conf with your editor. My editor is nano.

sudo nano /etc/redis/redis.conf

 

You have to change line  bind 127.0.0.1 to your server IP address, e.g.

bind 172.12.10.11

 

Allowing listen on all interfaces, use:

bind 0.0.0.0

 

Now restart redis service after making the change by the following command:

sudo systemctl restart redis-server

 

Read also : Multiple Ways to Delete Laravel Redis Keys

 

If you want to see that redis server is installed or not, open terminal and type below command to check. You will see the below output.

 

how-to-install-redis-on-linux-ubuntu-debian-10

Hope it can help you.

 

Facebook Github
A web enthusiastic, self-motivated Full-Stack Web Developer from Dhaka, Bangladesh with experience in developing applications using Laravel Vue and React Js Application.