下载
http://download.redis.io/releases/
编译
解压 下载下来的源码压缩文件,然后编译
tar -zxvf redis-4.0.12.tar.gz
cd redis-4.0.12/
make
启动 redis 服务端
./src/redis-server redis.conf
12332:C 31 Jan 19:32:23.575 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
12332:C 31 Jan 19:32:23.575 # Redis version=4.0.12, bits=64, commit=00000000, modified=0, pid=12332, just started
12332:C 31 Jan 19:32:23.575 # Configuration loaded
12332:M 31 Jan 19:32:23.575 * Increased maximum number of open files to 10032 (it was originally set to 1024).
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 4.0.12 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 12332
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
启动 redis 客户端
./src/redis-cli
127.0.0.1:6379>
127.0.0.1:6379> KEYS *
(empty list or set)
127.0.0.1:6379>
参考链接:
https://redis.io/download
https://blog.youkuaiyun.com/Mikeoperfect/article/details/79468944
http://www.cnblogs.com/piaolingzxh/p/4199999.html
https://www.jianshu.com/p/86eee4c13645