Install
Redis official website: https://redis.io/download/ Download and install binary files
You can download and install the latest version of Redis7.2.0, or the optional version 6.x
I download the latest versions 6.2.13 and 7.2 here. Later we will explain the information on installing version 6.2.13.
Binary installation steps
Preparation for installation:
Install gcc
yum install gcc
Compressed file
tar -xzf redis6.2.13.tar.gz
compile
cd redis-x.x.x
makeInstall
make install
Specify installation directory
make PREFIX=/your/desired/path install
The above is the installation and configuration of redis. Regarding the docker installation and configuration of redis, you can refer to the following configuration. I will not explain too much here.
version: '3'
services:
redis:
image: redis:6.2.1
container_name: redis
command