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
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
this is the lack of Perl module that caused the installation
yum -y install perl-ExtUtils-MakeMaker
The following error occurs
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
If an error is reported,
execute:make MALLOC=libc
Execution: make install
redis installation is over:
enter the src directory to start redis:redis-server
OK under the test ! Linux version redis installation is over
Redis cluster construction: https://blog.csdn.net/xaiobaicai/article/details/114129560