centos快速安装redis

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 
posted @ 2017-02-24 15:41  但行好事-莫问前程  阅读(1961)  评论(0编辑  收藏  举报