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>