Redis server is available under the default package repository on most popular Linux platforms. If you don’t want to compile Redis from source code. You can use one of the below tutorials to install Redis using the package manager.

How to Install Redis on Ubuntu using Apt-Get How to Install Redis on CentOS using Yum

Install Redis on Linux VPS

Redis only required GCC and GLIBC packages to build from Source. So it’s the most recommended way for the Redis installation on a VPS. Run the below set of commands to download the latest source code and install Redis’s latest version on the Linux system. Run the below commands to compile Redis from the source and install it. A Redis configuration file is also available in the current directory. You can copy this file to a better location and customize Redis.

Start Redis Server

You can start the Redis server without any configuration file. In that situation, Redis uses its inbuilt configuration. If you need to customize, Update changes to /etc/redis/redis.conf and start your Redis server as below.

Run command redis-cli ping on your system terminal. On successful execution, you will get string PONG in response.

Using Redis Server

Start working with the Redis server by inserting some key and value pairs manually. Type redis-cli on terminal and press enter. This will provide your Redis service prompt, Here you can run the commands directory to Redis.


In this blog post, you have learned about the installation of the Latest Redis server by compiling the source code.

How to Install Latest Redis from Source on Linux   TecAdmin - 18