Download, extract and compile Redis with:
$ wget http://download.redis.io/releases/redis-5.0.3.tar.gz
$ tar xzf redis-5.0.3.tar.gz
$ cd redis-5.0.3
$ 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"

本文详细介绍了如何下载、解压并编译Redis源代码,使用的是Redis 5.0.3版本。完成编译后,文章指导如何通过src目录下的redis-server启动Redis服务,并使用redis-cli客户端进行交互操作。
2153

被折叠的 条评论
为什么被折叠?



