Open Terminal:
1. ~$ sudo apt-get update
2. ~$ sudo apt-get install make gcc python-dev
3.Download, extract and compile Redis with:
-----script------
$ wget http://download.redis.io/releases/redis-3.2.0.tar.gz
$ tar xzf redis-3.2.0.tar.gz
$ cd redis-3.2.0
$ make
4. Startup Redis-server:
The binaries that are now compiled are available in the src directory. Run Redis with:
-----script-----
michael@ubuntu:~$ cd redis-3.2.0
$ src/redis-server
5. Startup Redis-client and simpel code
You can interact with Redis using the built-in client:
-----script-----
michael@ubuntu:~$ cd redis-3.2.0
$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"
!import: online redis traning: http://try.redis.io/
[Chapt1] Redis Install on linux
原文:http://yuanzhitang.blog.51cto.com/2769219/1782316