linux下安装redis
官方有安装的步骤链接如下:
http://redis.io/download
Installation
Download, extract and compile Redis with:
$ wget http://download.redis.io/releases/redis-2.8.16.tar.gz
$ tar xzf redis-2.8.16.tar.gz
$ cd redis-2.8.16
$ make
The binaries that are now compiled are available in the src
directory. Run Redis with:
$ src/redis-server
You can interact with Redis using the built-in client:
$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"