Mongod: Command Not Found (OS X)

前端 未结 9 979
情深已故
情深已故 2020-12-14 17:08

I am trying to test MongoDB and I have it all downloaded and moved into the root folder. I can navigate to the folder that holds the mongod, but when I try to run it by typi

9条回答
  •  无人及你
    2020-12-14 17:56

    I was trying to install a previous version (3.6) using latest documentation (4.2 is already released). So, they now call it mongodb-community@3.6.

    In order to update PATH for such setup, the statement should be

    export PATH="$PATH:/usr/local/opt/mongodb-community@3.6/bin";
    

    I got hint from @retroGiant 's answer

提交回复
热议问题