centos 6.5安装使用 redis

来源:互联网 发布:校园网络自助平台 编辑:程序博客网 时间:2024/06/16 03:55

参考官方指导

https://redis.io/download

1、准备

Download, extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-3.2.9.tar.gz$ tar xzf redis-3.2.9.tar.gz$ cd redis-3.2.9$ make

The binaries that are now compiled are available in the src directory.

2、运行Run Redis with:

$ src/redis-server

3、测试You can interact with Redis using the built-in client:

$ src/redis-cliredis> set foo barOKredis> get foo"bar"
表明服务启动成功,设置了foo 的值为"bar"
原创粉丝点击