Minimum System Requirements

  • 4 CPU Cores
  • 16GB RAM
  • Two Storage Devices
  • 1GBps Network Connection
  • 8 CPU Cores
  • 32GB RAM
  • Redundant SSD Based storage with RAID
  • 1GBps Network Connection +

Redis Quick Installation

There are several scripts available on github in order to automate the installation of Redis in just a few steps. We’ve included this process, as well as the full installation process for those interested.

Step 1: Login to the server via SSH

ssh ubuntu@IP

Step 2: Change to the root user

sudo su

Step 3: Clone the git project

git clone

Step 4: Change into the directory

cd 2b98f0b128d94811e43f86412dc375a1

Step 5: Set the correct permissions

chmod 755

Step 6: Execute the script


Redis Full Installation

Step 1: Login to the server via SSH

ssh ubuntu@IP

Step 2: Change to the root user

sudo su

Step 3: Update to latest repositories

apt-get update

Step 4: Download the dependancies

apt-get install -y build-essential tcl

Step 5: Change into the /tmp directory

cd /tmp

Step 6: Download the latest stable version of Redis

curl -O

Step 7: Unpack the tar file

tar xzvf redis-stable.tar.gz

Step 8: Change into the Redis directory

cd redis-stable

Step 9: Compile Redis


Step 10: Test to ensure everything was built correctly

make test

Step 11: Install the required binaries

make install

Redis Configuration

Step 1: Create the configuration directory

mkdir /etc/redis

Step 2: Copy the sample configuration file

cp /tmp/redis-stable/redis.conf /etc/redis

Step 3: Open the configuration file in your text editor of choice

vi /etc/redis/redis.conf

Step 4: Edit the configuration file

-Change the supervised mode to “systemd”

-Set the dir to /var/lib/redis

-Save and close the file

Step 5: Create the Redis systemd file

vi /etc/systemd/system/redis.service

Paste the following content:

Description=Redis In-Memory Data Store

ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
ExecStop=/usr/local/bin/redis-cli shutdown


Save and close the file.

Step 6: Create the Redis Users

adduser --system --group --no-create-home redis

Step 7: Create the Redis directory

mkdir /var/lib/redis

Step 8: Give the Redis user permissions over the directory

chown redis:redis /var/lib/redis

Step 9: Prevent other users from accessing this directory

chmod 770 /var/lib/redis

Starting and Using Redis

Step 1: Start Redis

systemctl start redis

Step 2: Test Redis Functionality


Type “ping” and you should receive the following output:

Step 3: Enable Redis to start on boot

systemctl enable redis


Redis is now configured to run on your Ubuntu 16.04 server with ServerMania.