testVmap
V2EX  ›  Redis

reids 使用软连接启动提示配置文件报错问题

  •  
  •   testVmap · Aug 28, 2018 · 5424 views
    This topic created in 2841 days ago, the information mentioned may be changed or developed.

    安装过程如下

    wget http://download.redis.io/releases/redis-4.0.10.tar.gz
    tar xvf redis-4.0.10.tar.gz
    mv redis-4.0.10 /usr/local/redis
    cd /usr/local/redis
    make
    ln -s /usr/local/redis/src/redis-server /usr/bin/redis-server
    ln -s /usr/local/redis/src/redis-cli /usr/bin/redis-cli
    

    使用软连接启动 redis 的时候报错如下

    redis-server /usr/local/redis/redis.conf 
    *** FATAL CONFIG FILE ERROR *** 
    Reading the configuration file, at line 88
    >>> 'protected-mode yes'
    Bad directive or wrong number of arguments
    

    #使用绝对路径启动 redis 就没有报错

    $/usr/local/redis/src/redis-server /usr/local/redis/redis.conf 
    

    为什么软连接会有这个问题

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3267 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 11:49 · PVG 19:49 · LAX 04:49 · JFK 07:49
    ♥ Do have faith in what you're doing.