1、解压 cd /usr/local tar -zxvf redis-5.0.1.tar.gz 2、安装gcc yum -y install gcc gcc -v 3、编译 cd redis-5.0.1/ make 4、安装 make install