Article

Table of Contents
Try Vultr Today with

$50 Free on Us!

How-To Install Redis from Source

Published on: Thu, Mar 19, 2015 at 8:27 am EST
Linux Guides

Introduction

Redis is often referred to as a data structures server. This means that Redis provides access to mutable data structures via a set of commands, which are sent by using a client/server model with TCP sockets. Different processes can query and modify the same data structures in a shared way. (from the official git repo)

Installing Redis

First, your Linux server must be equipped with git. To install git, use the following command.

For Ubuntu:

apt-get update; apt-get install -y git

For CentOS:

yum update; yum install git

After the installation of the git, download the source code of Redis.

git clone http://github.com/antirez/redis/

Before compiling the source code, you should have the build-essential package installed.

For Ubuntu:

apt-get install build-essential

For CentOS:

yum groupinstall "Development Tools"

Once this package is installed, make and install Redis.

sudo make; sudo make install

Using Redis

Congrats, you now have the Redis server installed! You can type redis-cli to query/insert data or type redis-benchmark to test out the performance of your VPS.

Want to contribute ?

You could earn up to $300 by adding new articles