首先需要安装依赖包: yum install -y gcc gcc-c++ 然后下载安装包: wget http://download.redis.io/releases/redis-5.0.7.tar.gz :wget http://download.redis.io/releases/redis-5.0.7.tar.gz --2020-03-06 09:03:24-- http://download.redis.io/releases/redis-5.0.7.tar.gz Resolving download.redis.io (download.redis.io)... 109.74