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 
时间: 2024-08-19 06:49:59

centos快速安装redis的相关文章

centos 快速安装memcached

1.由于CentOS系统默认源没有memcache安装包,因此需要导入第三方的源.执行如下两条命令: [[email protected] data]# wget ftp://fr2.rpmfind.net/linux/epel/5/ppc/epel-release-5-4.noarch.rpm [[email protected] data]# rpm -ivh epel-release-5-4.noarch.rpm 2.yum安装Memcache服务器与php扩展 [[email prote

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

前提: 在用Centos 7 安装 redis 时,遇上一下几个问题 ,记录下 . 1.修改配置文件,按官网步骤启动,不生效. 2.外网无法访问redis. 步骤: 1.打开centos 虚拟机 ,按官网文档,下载文件及安装 .https://redis.io/download 2.启动服务后,发现外网无法连接redis,于是拷贝解压包下配置文件redis.conf文件为redis02.conf ,修改redis.conf文件内容如下. 改前 改后 说明 bind 127.0.0.1 #bind

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

1.redis简单说明 1.redis是一个key-value存储系统,它支持存储的value类型相比较Memcached更多,包括string,list,set,sets,hashes等(It supports data structures such as strings,hashes,lists,sets,sorted sets with range queries,bitmaps,hyperloglogs and geospatial indexes with radius queies

centOS 中安装 Redis

之前安装过了 jdk,mysql,tomcat,这次安装 Redis, 1 . 首先得安装 c环境,用来编译 Redis源码, [[email protected] lib64]# clear [[email protected] lib64]# yum install gcc-c++ 接下来大约要下载 22MB 这个样子,很快就能下载完, 2 . 准备 redis 源码文件 利用 SSH 将 redis 拷贝到 centOS 中的 /soft 中,然后我在 /usr/local/ 下新建了一个

.net 搭建分布式框架(二)CentOS下安装Redis

开始之前 先用SecureCRT连接CentOS 7,连接步骤过于简单就不多介绍了,如果不知道CentOS上的ip 可以用命令 ip addr 查看 一.下载redis安装包 1.输入命令: //进入目录cd usr/local/src //创建redis文件夹mkdir redis //进入刚刚创建好的redis目录 cd redis //用wget命令下载redis安装包 wget http://download.redis.io/releases/redis-4.0.9.tar.gz 结果

centOS上安装redis

1.安装tcl支持 yum install tcl 2.安装redis我们以最新的2.8.9为例 $ wget http://download.redis.io/releases/redis-2.8.9.tar.gz $ tar xzf redis-2.8.9.tar.gz $ cd redis-2.8.9 $ make $ make test $ make install 测试通过后安装,安装后会自动把redis-server,redis-cli,redis-benchmark,redis-c

CentOS yum安装redis

安装redis yum install redis 2.  安装php-redis扩展 yum install php-redis 3.  启动redis,并设定开机自动启动 service redis start chkconfig redis on 完成,安装就是这么简单.粗暴!!!!

CentOS下安装Redis及Redis的PHP扩展

1.安装Redis 1.1 如果没有安装wget,安装wget yum install wget 1.2 在http://redis.io/download页面查看redis版本,并下载安装 wget http://download.redis.io/releases/redis-3.2.0.tar.gz 1.3 解压,并进入解压目录进行编译.编译成功后会在redis-3.2.0目录下生成相关文件 $ tar xzf redis-3.2.0.tar.gz $ cd redis-3.2.0 $ m

【转】centOS上安装redis

原文链接:http://www.cnblogs.com/xsi640/p/3756130.html 我原来的安装方式:http://www.cnblogs.com/wuling129/p/4647382.html   这种方式有点麻烦,本文的方式更好. 1.安装tcl支持 yum install tcl 2.安装redis我们以最新的2.8.9为例 $ wget http://download.redis.io/releases/redis-2.8.9.tar.gz $ tar xzf redi