一、安装
$ 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"
官网:https://redis.io/download
网友评论