jsjcjsjc
V2EX  ›  问与答

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

  •  
  •   jsjcjsjc · Oct 2, 2017 · 2387 views
    This topic created in 3341 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
    darkshell
    Oct 2, 2017 via iPhone❤️1
    1
    这个目录不在 path 里面,在前面加./
    feiyuanqiu
    feiyuanqiu
    Oct 2, 2017❤️1
    2
    mongod 路径没有在 PATH 环境变量里配置吧,shell 找不到 mongod 的完整路径,需要用 ./ 指定为当前目录

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