Download, unzip, and compile redis with the following commands:
$ wget http://download.redis.io/releases/redis-4.0.2.tar.gz
$ tar xzf redis-4.0.2.tar.gz
$ cd redis-4.0.2
$ make
The compiled executable binary file is in the src folder, you can run redis with the following command:
$ src/redis-server
You can interact with Redis using the built-in client:
You can interact through the built-in client:
$ src/redis-cli
redis>set foo bar
OK
redis>get foo
" bar"
Basically, it can be installed by default.
Recommended Posts