Monday 1 June 2015

How to install Redis on ubuntu

Installation

Download, extract and compile Redis with:

root@javateam:~# wget http://download.redis.io/releases/redis-3.0.1.tar.gz
root@javateam:~# tar xzf redis-3.0.1.tar.gz
root@javateam:~# cd redis-3.0.1
root@javateam:~# make
The binaries that are now compiled are available in the src directory. Run Redis with:
root@javateam:~# src/redis-server
You can interact with Redis using the built-in client:
root@javateam:~# src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

No comments:

Post a Comment