Skip to content

Instantly share code, notes, and snippets.

@sharathchandramg
Last active January 18, 2019 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharathchandramg/7444e1d38e0455c3215e5e75d35bf667 to your computer and use it in GitHub Desktop.
Save sharathchandramg/7444e1d38e0455c3215e5e75d35bf667 to your computer and use it in GitHub Desktop.
Steps to install redis

Start off by updating all of the apt-get packages:

sudo apt-get update

Once the process finishes, download a compiler with build essential which will help us install Redis from source:

sudo apt-get install build-essential

Download tcl

 sudo apt-get install tcl8.5

Install the latest redis build from internet

wget http://download.redis.io/releases/redis-stable.tar.gz

Untar the files

tar xzf redis-stable.tar.gz

Switch to directlory

cd redis-stable

Run make command

make

Install the program system wide

sudo make install

Redis comes with a built in script that sets up Redis to run as a background daemon. To access the script move into the utils directory:

cd utils

Run installation script

sudo ./install_server.sh

Starting & Stopping the Redis Service

sudo service redis_6379 start
sudo service redis_6379 start

To ensure Redis is always on acoss restarts

sudo update-rc.d redis_6379 defaults

Check if redis is running

Type redis-cli

The output will be

redis 127.0.0.1:6379> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment