zoukankan      html  css  js  c++  java
  • 编译安装redis 3.2.9 make test 时报错

    默认监听端口:6379(可以创建多个端口的配置文件)
    源码安装:
    $ yum install tcl
    $ wget http://download.redis.io/releases/redis-3.2.9.tar.gz
    $ tar xzf redis-3.2.9.tar.gz
    $ cd redis-3.2.9
    $ make
    $ make test
    $ make install
    安装完后,编辑redis.conf文件
    vi redis.conf
    修改daemonize no改成yes。
    cp redis.conf /etc/redis-6379.conf 
    /usr/local/bin/redis-server /etc/redis-6379.conf 
     
     
    命令:
    #删除所有key 值
    redis-cli -p 6379 keys "*" |xargs redis-cli del

    以下为在make test 命令执行后部分报错提示:

    [exception]: Executing test client: NOREPLICAS Not enough good slaves to write..
    NOREPLICAS Not enough good slaves to write.

    Killing still running Redis server 20427
    Killing still running Redis server 20426
    Killing still running Redis server 20429
    Killing still running Redis server 20428
    Killing still running Redis server 20434
    Killing still running Redis server 20430
    Killing still running Redis server 20432
    Killing still running Redis server 20436
    Killing still running Redis server 20440
    Killing still running Redis server 20452
    Killing still running Redis server 20564
    Killing still running Redis server 20601
    Killing still running Redis server 20617
    Killing still running Redis server 20635

    make[1]: *** [test] Error 1
    make[1]: Leaving directory `/tmp/redis-3.2.9/src'
    make: *** [test] Error 2

    解决办法:

    vim tests/integration/replication-psync.tcl

    把after 后面的值设置为1000,然后重新make test

  • 相关阅读:
    ASP.NET常用的三十三种代码
    asp.net获取IP地址
    Inside Microsoft Sql Server 2005 TSQL Programming 学习笔记
    动态SQL与SQL注入(一)动态SQL
    (二)SQL 注入
    WCF 安全
    C# 运算符重载和 implicit关键字
    分页那回事
    thinking
    Moss css
  • 原文地址:https://www.cnblogs.com/wangss/p/6993537.html
Copyright © 2011-2022 走看看