需要前置配置
网络,Yum。详情请百度
需要安装的工具
wget, gcc
[root@localhost ~]# yum install wget gcc
下载最新stable版Redis
[root@localhost ~]# cd /usr/local/src
[root@localhost src]# wget http://download.redis.io/releases/redis-4.0.1.tar.gz
解压并安装
[root@localhost src]# tar zxvf redis-4.0.1.tar.gzls ##解压
[root@localhost ~]# cd redis-4.0.1
[root@localhost redis-4.0.1]# cd /usr/local/
[root@localhost local]# mkdir redis ##创建Redis安装目录
[root@localhost local]# cd src/redis-4.0.1
[root@localhost local]# make
[root@localhost local]# make install PREFIX=/usr/local/redis/ ##加上PREFIX指定文件生成路
经过以上部署就可以在CentOS7 最小化安装下安装好Redis。