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

  • 相关阅读:
    2017洛谷7月月赛总结
    poj3169 Layout
    poj3613Cow Relays
    洛谷P1418 选点问题
    poj3311Hie with the Pie
    poj1734Sightseeing trip
    poj3728The merchant
    洛谷P2420 让我们异或吧
    struts2.1笔记02:servlet简介
    struts2.1笔记01:MVC框架思想浅层理解
  • 原文地址:https://www.cnblogs.com/wangss/p/6993537.html
Copyright © 2011-2022 走看看