CentOS6.5安装redis(3.0.3)

前端之家收集整理的这篇文章主要介绍了CentOS6.5安装redis(3.0.3)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

下载redis的安装包:http://download.redis.io/releases/redis-3.0.3.tar.gz

由于我的系统是刚装的,所以需要安装gcc才能编译成功,建议大家都先安装下gcc再安装文件
离线安装gcc方法,请看末尾
yum install gcc

然后再按照下面的方式执行

Installation

Download,extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-3.0.3.tar.gz
$ tar xzf redis-3.0.3.tar.gz
$ cd redis-3.0.3
$ make

The binaries that are now compiled are available in thesrcdirectory. Run Redis with:

$ src/redis-server

You can interact with Redis using the built-in client:

$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

 
 
离线安装GCC方法
 
#rpm-ivhmpfr-2.4.1-6.el6.x86_64.rpm
#rpm-ivhppl-0.10.2-11.el6.x86_64.rpm
#rpm-ivhcpp-4.4.7-4.el6.x86_64.rpm
#rpm-ivhcloog-ppl-0.15.7-1.2.el6.x86_64.rpm
#rpm-ivhgcc-4.4.7-4.el6.x86_64.rpm
离线包:http://pan.baidu.com/s/1i3lg73Z
 
转载地址博客地址:http://blog.csdn.net/gsying1474
原文链接:https://www.f2er.com/centos/381588.html

猜你在找的CentOS相关文章