Friday, November 18, 2011

Redis Installation in Linux

     Redis is a open source, advanced key-value store, and is intended as a datastore solution for applications where performance and flexibility are more critical than persistence and absolute data integrity. Installation of redis is very simple.

#cd /usr/src/
#wget http://redis.googlecode.com/files/redis-2.4.2.tar.gz
#tar xzf redis-2.4.2.tar.gz
#cd redis-2.4.2
#make

The binaries that are now compiled are available in the src directory. You have to create an soft link of it as

#ln -s src/redis-server /bin/redis-server
#ln -s src/redis-cli /bin/redis-cli

Start Redis Server as

#redis-server

Now, You can interact with Redis using the built-in client:

#redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

No comments:

Post a Comment