V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
testVmap
V2EX  ›  Redis

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

  •  
  •   testVmap · 2018-08-28 15:07:56 +08:00 · 4504 次点击
    这是一个创建于 2059 天前的主题,其中的信息可能已经有所发展或是发生改变。

    安装过程如下

    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 
    

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

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3661 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:54 · PVG 12:54 · LAX 21:54 · JFK 00:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.