What is Redis?
Redis is an open source, BSD licensed, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets,sorted sets, bitmaps and hyperloglogs.
How to install?
Download the latest and stable tar file from the following link or from anywhere you like
Untar (like Unzip) it and switch into that directory:
$ tar xzf redis-2.8.9.tar.gz # Or simply right click on the file and click 'Extract'
$ cd redis-2.8.9
Proceed to with the make command:
Run the recommended make test:
$ make test
Finish up by running make install, which installs the program system-wide.
$ sudo make install
Once the program has been installed, 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
From there, run the Ubuntu/Debian install script:
$ sudo ./install_server.sh
It will ask the following
Welcome to the redis service installer This script will help you easily set up a running redis server > Please select the redis port for this instance:  # You can enter the port you like, 6379 is default : Suggested to change # Or you can just press ENTER, it will use default PORT Selecting default: 6379 > Please select the redis config file name [/etc/redis/6379.conf] # You can just press ENTER, it will use default PORT Selected default - /etc/redis/6379.conf > Please select the redis log file name [/var/log/redis_6379.log] # You can just press ENTER, it will use default PORT
$ redis-server Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf Note: Creating Server TCP listening socket *:6379: bind: Address already in use then $ redis-cli ping > pong # If it returns 'pong' then an instance already exists $ redis-cli 127.0.0.1:6379> shutdown not connected> exit # exit command exits the cli # you can again try $ redis-server