V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jsjcjsjc
V2EX  ›  问与答

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

  •  
  •   jsjcjsjc · Oct 2, 2017 · 2024 views
    This topic created in 3135 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   ·   755 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 20:51 · PVG 04:51 · LAX 13:51 · JFK 16:51
    ♥ Do have faith in what you're doing.