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

  • 相关阅读:
    linux Mint 安装apache2
    linux Mint 安装tomcat8
    linux Mint wine安装qq,桌面快捷键配置
    linux Mint mysql 安装
    卸载linux Mint自带jdk并安装最新jdk
    linux Mint截图软件 Shutter
    linux git安装及配置(包括更新)
    linux安装wine
    百度地图用ip获取当前位置的经纬度(高精度)
    mysql 索引和视图
  • 原文地址:https://www.cnblogs.com/wangss/p/6993537.html
Copyright © 2020-2023  润新知