redis download and installation (linux version)

redis download and installation (linux)

I wrote an article about the download and installation of the redis windows version before: https://blog.csdn.net/xaiobaicai/article/details/112819054

Linux service: reids cluster construction https://blog.csdn.net/xaiobaicai/article/details/114129560

The following is a detailed tutorial on
downloading and installing redis for linux. Download link :
https://redis.io/download
Insert picture description here

Upload the downloaded package to the linux server:

解压安装包:
[root@localhost redis]# tar -zxvf redis-6.0.11
进入redis安装目录:
[root@localhost redis]# cd redis-6.0.11
编译:
[root@localhost redis-6.0.11]# make
[root@localhost redis-6.0.11]# make install

Note: execute make to report an error to solve
Insert picture description here
this is the lack of Perl module that caused the installation

yum -y install perl-ExtUtils-MakeMaker

The following error occurs
Insert picture description here

1、安装gcc套装:
yum install cpp
yum install binutils
yum install glibc
yum install glibc-kernheaders
yum install glibc-common
yum install glibc-devel
yum install gcc
yum install make

2、升级gcc
yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
scl enable devtoolset-9 bash

Compiling redis:make
Insert picture description here

If an error is reported, Insert picture description here
execute:make MALLOC=libc
Insert picture description here

Execution: make install
Insert picture description here
redis installation is over:
enter the src directory to start redis:redis-server
Insert picture description here


Insert picture description here
OK under the test ! Linux version redis installation is over

Redis cluster construction: https://blog.csdn.net/xaiobaicai/article/details/114129560

Guess you like

Origin blog.csdn.net/xaiobaicai/article/details/113993749