The path to growth as an architect|Introduction to Redis installation and memory allocator jemalloc

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

Insert image description here

I download the latest versions 6.2.13 and 7.2 here. Later we will explain the information on installing version 6.2.13.

Insert image description here

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
make

Install

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

Guess you like

Origin blog.csdn.net/huanglu0314/article/details/132549016