Download and Installation

1.Download
Website: http://redis.io/download
Download lastest and stable version(My version is 2.4.6)

2.Installation
(1)Extract and compile redis with:
# tar xzf redis-2.4.6.tar.gz
# cd redis-2.4.6
# 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 127.0.0.1:6379> set foo bar
OK
redis 127.0.0.1:6379> get foo
"bar"

猜你喜欢

转载自supportopensource.iteye.com/blog/1356255