首页 > 代码库 > redis在linux下的安装和配置

redis在linux下的安装和配置

1 Installation

Download, extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-2.8.19.tar.gz$ tar xzf redis-2.8.19.tar.gz$ cd redis-2.8.19$ 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-cliredis> set foo barOKredis> get foo"bar"

2 测试是否安装成功

redis在linux下的安装和配置