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

  • 相关阅读:
    洛谷P5281 [ZJOI2019] Minimax搜索
    势函数
    Comet OJ [Contest #5] 迫真大游戏
    洛谷P3307 [SDOI2013] 项链
    洛谷P5985 [PA2019] Muzyka pop
    CF1205E Expected Value Again
    review
    CF891E Lust
    线性代数
    洛谷P4607 [SDOI2018] 反回文串
  • 原文地址:https://www.cnblogs.com/wangss/p/6993537.html
Copyright © 2011-2022 走看看