一、Redis编译环境
执行sudo yum install gcc-c++
,执行过程中有两个地方选择y,不用其余操作。
[root@172 ~]# yum install gcc-c++
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
.......
Total download size: 54 M
# 第一处选择
Is this ok [y/d/N]: y
Downloading packages:
.......
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-4.1708.el7.centos.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
# 第二处选择
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
.......
Complete!
二、下载源码
建立目录/home/redis,进入目录执行
wget http://download.redis.io/releases/redis-3.2.11.tar.gz
[root@172 redis]# wget http://download.redis.io/releases/redis-3.2.11.tar.gz
--2017-12-13 06:30:49-- http://download.redis.io/releases/redis-3.2.11.tar.gz
Connecting to ----:----... connected.
Proxy request sent, awaiting response...