1.安装wget
yum install -y wget
2.安装需要依赖的环境
yum install -y gcc g++ gcc-c++ make
3.下载redis
wget http://download.redis.io/releases/redis-6.2.5.tar.gz
4.解压redis包
tar xzf redis-6.2.5.tar.gz
5.执行make
若报错则执行 make MALLOC=libc