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"
启动Redis服务:
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的重要工具。
原文地址:https://www.cnblogs.com/MakeView660/p/11548229.html
时间: 2024-10-09 04:11:31