jsjcjsjc
V2EX  ›  问与答

为什么安装 leanote 的时候一直提示 -bash: mongod: command not found

  •  
  •   jsjcjsjc · Oct 2, 2017 · 2058 views
    This topic created in 3148 days ago, the information mentioned may be changed or developed.

    先不谈变量。。。我是直接在 mongod 的文件下运行的啊,不存在变量问题。。 求解

    http://cloud.getpocket.net/files/temp/1.jpg

    3 replies    2017-10-02 14:41:53 +08:00
    darkshell
        1
    darkshell  
       Oct 2, 2017 via iPhone   ❤️ 1
    这个目录不在 path 里面,在前面加./
    feiyuanqiu
        2
    feiyuanqiu  
       Oct 2, 2017   ❤️ 1
    mongod 路径没有在 PATH 环境变量里配置吧,shell 找不到 mongod 的完整路径,需要用 ./ 指定为当前目录

    ./mongod -dbpath /home/user1/data
    jsjcjsjc
        3
    jsjcjsjc  
    OP
       Oct 2, 2017
    解决了, 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2969 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 09:37 · PVG 17:37 · LAX 02:37 · JFK 05:37
    ♥ Do have faith in what you're doing.