How to install redis server in ubuntu 14.04, 14.10, 15.04

In this tutorial i am going to show you some basic ubuntu commands to install Redis Server in your local system and how to start and stop it. You might have listen about the redis server a powerful NoSql database where you can store data in key pair format like memcached and mongoDb. But it is different from memcached server because it offered more and advanced feature then memcached. It would be great if you start using redis and put down memcached a while, You must loved it. Because it aslo support datatypes and it’s key can store strings, hashes, lists, sets and sorted sets etc.

You should also see these tutorials

* Improve your php based application performance with memcached
* How to Install and Configure MongoDB on Ubuntu 14.04
* MongoDb with PHP configuration and tutorial for beginner

Installing redies server in ubuntu

Step.1: First of all update your repository.

sudo apt-get update

It may take some time please be patience

Step.2: Run below command to install redis server from ubuntu repository.

sudo apt-get -y install redis-server

Step.3: After successful installation test redis has been installed on your system or not. by running redis cli command and ping your redis server.

$ redis-cli> ping

Where 6379 is the default port number of redis server.


How to start stop, restart redis server?

Follow below command to start stop and restart your redis server.
Start redis server

service redis-server start

Stop redis server

service redis-server stop

Restart redis server

service redis-server restart

If you like this post please don’t forget to subscribe my public notebook for more useful stuff