Centos7下安装Redis
一、下载
Redis官网下载地址:http://download.redis.io/releases
二、移动
将本地下载好的redis-3.0.4.tar.gz(这里我以3.0.4版本为例)移动到虚拟机/opt目录下(直接在windows下复制,在opt目录下粘贴就好)
三、解压
四、安装
执行make命令,然后就会发现报没有gcc、cc命令。
为了解决这个问题我们要安装gcc
在命令行输入yum -y install gcc automake autoconf libtool make。
PS:该命令行是要在管理员模式下输入,如果是普通用户,要切换成管理员root用户
下载安装完毕,再执行make会发现还是报错,报致命错误xxx的。。。。。。
解决方案,在redis-3.0.4目录下输入make distclean命令,然后再执行make命令,自此Redis就安装完成了