linux安装redis官方教程

官方链接:http://redis.io/download

Download, extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-3.2.1.tar.gz
$ tar xzf redis-3.2.1.tar.gz
$ cd redis-3.2.1
$ 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"

 

posted @ 2016-06-29 18:04  ieayoio  阅读(217)  评论(0编辑  收藏  举报