Mongod: Command Not Found (OS X)

1.2K    Asked by DaniloGuidi in Python , Asked on Jun 14, 2021

 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 typing "mongod" into my terminal, I get a message that says:

"mongod: command not found"

Answered by Daniel Cameron

Incase, mongod command not found error then you can either specify the path in one of the following files: .profile, .bashrc, or .bash_profile

  export PATH="$PATH:/usr/local/mongodb/bin"

After the above command call the daemon or the shell directly

mongod

mongo



Your Answer

Interviews

Parent Categories