安装环境
yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
切换环境
echo "source /opt/rh/devtoolset-9/enable" >>/etc/profile
下载redis6
wget http://download.redis.io/releases/redis-6.0.5.tar.gz
解压redis
tar -zxf redis-6.0.5.tar.gz
最后安装
make && make install