Redis入门学习(二):下载安装

Linux操做系统
Download, extract and compile Redis with:
$ wget http://download.redis.io/releases/redis-4.0.11.tar.gz
$ tar xzf redis-4.0.11.tar.gz
$ cd redis-4.0.11
$ 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"html

启动Redis服务:git

Redis内置客户端:github

PS:运行Redis的最佳系统时Linux和Mac OS,官方推荐的生产系统时Linux。 redis

 

Windows操做系统
下载地址:https://github.com/MSOpenTech/redis工具

 

 

红框处第一个为msi安装版本,第二个为release版本,直接运行exe便可。
msi安装配置参考:http://www.cnblogs.com/jaign/articles/7920588.html
直接运行版本:学习

 redis-cli,即Redis Command Line Interface是Redis自带的基于命令行的Redis客户端,也是咱们学习和测试Redis的重要工具。测试

相关文章
相关标签/搜索