mkdir redis
cd redis
wget http://labfile.oss.aliyuncs.com/files0422/redis-2.8.9.tar.gz

解压

 tar -xvfz redis-2.8.9.tar.gz 

编译

cd redis-2.8.9
make
make install

编译如果没报错,安装就算初步完成了.查看目录

cd src
adlist.c     aof.c        crc64.o       hyperloglog.c  memtest.c        pqsort.c         redis-benchmark.c   redis.o         sds.c           solarisfixes.h  t_string.o    zipmap.o
adlist.h aof.o db.c hyperloglog.o memtest.o pqsort.h redis-benchmark.o redis-sentinel sds.h sort.c t_zset.c zmalloc.c
adlist.o asciilogo.h db.o intset.c migrate.c pqsort.o redis.c redis-server sds.o sort.o t_zset.o zmalloc.h
ae.c bio.c debug.c intset.h migrate.o pubsub.c redis-check-aof release.c sentinel.c syncio.c util.c zmalloc.o
ae_epoll.c bio.h debug.o intset.o mkreleasehdr.sh pubsub.o redis-check-aof.c release.h sentinel.o syncio.o util.h
ae_evport.c bio.o dict.c lzf_c.c multi.c rand.c redis-check-aof.o release.o setproctitle.c testhelp.h util.o
ae.h bitops.c dict.h lzf_c.o multi.o rand.h redis-check-dump replication.c setproctitle.o t_hash.c valgrind.sup
ae_kqueue.c bitops.o dict.o lzf_d.c networking.c rand.o redis-check-dump.c replication.o sha1.c t_hash.o version.h
ae.o config.c endianconv.c lzf_d.o networking.o rdb.c redis-check-dump.o rio.c sha1.h t_list.c ziplist.c
ae_select.c config.h endianconv.h lzf.h notify.c rdb.h redis-cli rio.h sha1.o t_list.o ziplist.h
anet.c config.o endianconv.o lzfP.h notify.o rdb.o redis-cli.c rio.o slowlog.c t_set.c ziplist.o
anet.h crc64.c fmacros.h Makefile object.c redisassert.h redis-cli.o scripting.c slowlog.h t_set.o zipmap.c
anet.o crc64.h help.h Makefile.dep object.o redis-benchmark redis.h scripting.o slowlog.o t_string.c zipmap.h

文件比较多,其中有用的就是几个可执行文件.

启动

./redis-server 

centos快速安装redis的更多相关文章

  1. Centos 7 安装redis,修改配置文件不生效、外网不能访问。

    前提: 在用Centos 7 安装 redis 时,遇上一下几个问题 ,记录下 . 1.修改配置文件,按官网步骤启动,不生效. 2.外网无法访问redis. 步骤: 1.打开centos 虚拟机 ,按 ...

  2. Linux(Centos)之安装Redis及注意事项

    1.redis简单说明 a.在前面我简单的说过redis封装成共用类的实现,地址如下:http://www.cnblogs.com/hanyinglong/p/Redis.html. b.redis是 ...

  3. CentOS 编译安装 Redis (实测 笔记 Centos 7.3 + redis 3.2.8)

    环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7.0-1406-x86_64-DVD.iso 安装步骤: 1.准备 1.1 显示系统版 ...

  4. CentOS快速安装最新版本的SaltStack

    SaltStack是一个类似Puppet的自动运维管理工具,打算用它来管理实验室的所有服务器包括OpenStack,当然要想把它玩起来首先得把它安装上, 这里我写了一个简单的脚本来在CentOS下快速 ...

  5. centOS 中安装 Redis

    之前安装过了 jdk,mysql,tomcat,这次安装 Redis,最开始是将 redis 安装在 windows 下 run 的,这时安装在 Linux 里面试试. 1 . 首先得安装 c环境,用 ...

  6. centos下安装redis/mysql等基础环境

    1.修改语言 阿里云的ECS默认语言是:en_US.UTF-8,需要改成zh_CN.UTF-8 修改方法:vim /etc/locale.conf,然后重启. 查看方法:echo $LANG 2.安装 ...

  7. CentOS下安装Redis及Redis的PHP扩展

    1.安装Redis 1.1 如果没有安装wget,安装wget yum install wget 1.2 在http://redis.io/download页面查看redis版本,并下载安装 wget ...

  8. Centos下安装Redis

    转自:http://nnzhp.cn/article/9/ 遇到问题,安装后并启动,redis-cli报错:Could not connect to Redis at 127.0.0.1:6379: ...

  9. centOS上安装redis

    1.安装tcl支持 yum install tcl 2.安装redis我们以最新的2.8.9为例 $ wget http://download.redis.io/releases/redis-2.8. ...

随机推荐

  1. Android与JNI(三) ---- c++调用java(转载)

    源码下载:JniDemo JNI就是Java Native Interface, 即可以实现Java调用本地库, 也可以实现C/C++调用Java代码, 从而实现了两种语言的互通, 可以让我们更加灵活 ...

  2. 反射机制(实例化Class)对象

    反,就是利用对象找到对象的出处 Object类中有一个方法,getClass() Date date = new Date(); System.out.println(date.getClass()) ...

  3. asp.net 二级域名session共享

    1.自定义类 namespace SessionShare{ public class CrossDomainCookie : IHttpModule { private string m_RootD ...

  4. java系列--类和对象

    一.成员属性,构造方法,成员方法 1.类名首字母一般大写 2.方法名的首字母一般是小写,使用驼峰法(匈牙利法) myCry, 下划线法 my_cry 3.方法的声明没有函数体(接口,抽象类),数据类型 ...

  5. Win10 的虛擬桌面

    Win10 的虛擬桌面我覺得蠻多餘的,平常很少用,除非是像以前的 "切換老闆鍵" ,老闆來了,你不想讓他知道你在幹嘛,趕快切換另外一個桌面. 切換工作視窗:Alt + Tab 叫出 ...

  6. Variation of e.touches, e.targetTouches and e.changedTouches

    We have the following lists: touches: A list of information for every finger currently touching the ...

  7. NSBundle介绍

    原文:http://blog.sina.com.cn/s/blog_8c87ba3b0100t89v.html bundle是一个目录,其中包含了程序会使用到的资源. 这些资源包含了如图像,声音,编译 ...

  8. OSG实现场景漫游(转载)

    OSG实现场景漫游 下面的代码将可以实现场景模型的导入,然后在里面任意行走,于此同时还实现了碰撞检测. 源代码下载地址: /* * File : Travel.cpp * Description : ...

  9. C语言strstr()函数:返回字符串中首次出现子串的地址

    今天又学到了一个函数 头文件:#include <string.h> strstr()函数用来检索子串在字符串中首次出现的位置,其原型为:    char *strstr( char *s ...

  10. LINQ 的查询_联表、分组、排序

    1.查询 var v = from s in db.Set<ScoreInfo>().ToList()group s by s.subject into scoreselect new{  ...