Redis is an opensource in memory data structure store commonly used as a cache, database and message broker. This is one of the most popular in memory data stores. It supports several data structures like lists, strings, hashes,sorted sets, sets etc. Redis server can be clustered so that the data structures can be replicated across several nodes across the cluster. This will improve fault tolerance and performance.


Here I am going to demonstrate the installation of Redis in a Raspberry Pi. The OS in my Raspberry Pi is Debian 10. The installation steps are very simple. We will be installing Redis in Standalone mode. Redis can be installed in clustered mode. Clustered mode will be explained in a different post.

First download the latest version of Redis from the Redis official website.  The latest version available as of now is 6.0.6.  You can use the latest available version at the time of installation.

Now perform the following steps.

Download, Extract and Compile Redis

tar xzf redis-6.0.6.tar.gz
cd redis-6.0.6

 After the above steps, the binaries are compiled and now we are ready to start the Redis.

cd src

Now the redis-server will be started. You will see a success message in the command line with a graphics similar to the one below.


Sample program to test the installation is explained in the next post.