参考:https://ywnz.com/linuxrj/3349.html
Redis 5.0.0安装方法
1.下载及解压、编译redis-5.0.0.tar.gz:
$ wget http://download.redis.io/releases/redis-5.0.0.tar.gz
$ tar xzf redis-5.0.0.tar.gz
$ cd redis-5.0.0
$ make
2.The binaries that are now compiled are available in the src directory. Run Redis with:
$ src/redis-server
3.You can interact with Redis using the built-in client:
$ src/redis-cli
redis> set foo bar
OK
redis> get foo
“bar”
实现案例参考:https://www.cnblogs.com/gdpuzxs/p/7222309.html
homebrew
https://brew.sh/index_zh-cn