美文网首页
【Linux】Redis编译安装

【Linux】Redis编译安装

作者: 这个程序员不太冷 | 来源:发表于2016-03-15 15:35 被阅读184次

一、编译安装

1、下载官网源码

wget http://download.redis.io/releases/redis-2.8.3.tar

2、解压源码包并安装

tar xzf  redis-2.8.3.tar.gz
cd redis-2.8.3
make 

make之后,会出现一句提示: Hint: To run 'make test' is a good idea ;) 建议运行一下

 make test

此时会出现一个报错:You need 'tclsh8.5' in order to run the Redis test

   方案一:
    # yum install - y tcl
   方案二:
    tcl的官方网站http://www.tcl.tk下载8.5版本
    #tar xvzf tcl8.5.12-src.tar.gz
    #cd tcl8.5.13/unix/
    # ./configure 
    # make  make test 
    # make instal
屏幕快照 2016-03-15 15.32.51.png

3、配置文件及启动

mkdir /usr/local/redis
cp redis.conf  /etc/
cd src
cp redis-check-aof redis-cli redis-server  redis-check-dump /usr/local/redis/
redis-server  /etc/redis.conf #启动redis服务
屏幕快照 2016-03-15 15.31.15.png

4、设置后台运行redis

vim  /etc/redis.conf
#daemonize no 
改成 
#daemonize yes

redis配置文件详解:http://

相关文章

  • 【5】安装redis

    安装 下载Linux安装包,解压 进入redis目录 cd redis 编译redis,直接敲 make 回车 编...

  • Redis 安装

    本文介绍基于 Linux 系统的 Redis 编译安装 一、安装 1、安装 gcc 环境 2、下载 redis 安...

  • Linux学习

    软件安装 redis在Linux上的安装 1)安装redis编译的c环境,yum install gcc-c++2...

  • redis集群

    1.解压-linux下安装redis Redis是c语言开发的安装redis需要c语言的编译环境。如果没有gcc需...

  • Linux系统下安装和卸载Redis和链接使用

    Linux系统下安装和卸载Redis 安装 下载、解压缩和编译Redis: 不同的版本还需要如下操作 现在编译的二...

  • Redis初探

    安装 Linux系统,在官网下载Redis 源码,按照README中的描述编译安装。 Windows系统,Gith...

  • 简 | 编译安装Redis

    环境 CentOS 7.2 Redis 4.0.6 安装编译依赖包 安装redis依赖 编译安装Redis 添加配...

  • 【Linux】Redis编译安装

    一、编译安装 1、下载官网源码 2、解压源码包并安装 make之后,会出现一句提示: Hint: To run '...

  • 虚拟机搭建redis伪集群

    一、redis基础安装 1、redist是c语言开发,在linux环境中需要先编译,安装gcc yum insta...

  • Redis3.X linux安装步骤

    Redis3.X linux安装步骤 1. 下载并编译 cd /usr wget http://download....

网友评论

      本文标题:【Linux】Redis编译安装

      本文链接:https://www.haomeiwen.com/subject/xhqqlttx.html