How to install Redis

Go to the terminal in ubuntu.Download, extract and compile Redis using the following commands,

$ wget
$ tar xzf redis-2.8.9.tar.gz
$ cd redis-2.8.9
$ make

The Binaries that are compiled will be available in the src directory.

To run the Redis server, execute the command

$ ./redis-2.8.9/src/redis-server

Similarly, to run the command line interface(in a seperate terminal), execute the command

$ ./redis-2.8.9/src/redis-cli

Now you can start executing the commands in the new terminal.  Or you can use

sudo apt-get install redis-server


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s