• 编译安装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

  • 相关阅读:
    常用问题处理
    modelsim仿真中遇到的问题
    modelsim编译altera的库
    verilog系统函数用法
    123
    MATLAB实现截位的问题
    加减与有符号和无符号库
    状态机中的RAM注意的问题--减少扇出的办法
    串口的时序
    L230 RF可靠性测试-RF指标
  • 原文地址:https://www.cnblogs.com/wangss/p/6993537.html
Copyright © 2020-2023  润新知