CentOS6.5安装redis(3.0.3)
如果没有安装gcc需要安装gcc 才能编译成功
yum install gcc
离线安装gcc的方法
# rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm # rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm # rpm -ivh cpp-4.4.7-4.el6.x86_64.rpm # rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm # rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm
现在redis并解压
# wget http://download.redis.io/releases/redis-3.0.3.tar.gz # tar xzf redis-3.0.3.tar.gz
进入 redis解压目录并编译
# cd redis-3.0.3
# make
启动redis服务
#src/redis-server
测试一下redis
# src/redis-cli
简单的安装已经完成