redis

redis安装

from source code

Download, extract and compile Redis with:

1
2
3
4
5
$ wget https://download.redis.io/releases/redis-6.0.9.tar.gz
$ tar xzf redis-6.0.9.tar.gz
$ cd redis-6.0.9
$ make

The binaries that are now compiled are available in the src directory. Run Redis with:

1
2
$ src/redis-server

You can interact with Redis using the built-in client:

1
2
3
4
5
6
$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"