0

I would like to run MondoDB locally. I am unable to do so because upon running

mongod -config /usr/local/etc/mongod.conf

I get the error:

-bash: mongod: command not found

I saw in the answer to this question: Mongod: Command Not Found (OS X) that I need to add the name of the folder that contains the command to PATH.

I saw in the answer to this question: Shell - How to find directory of some command? that I can run "type -a mongod", "which mongod", among other solutions to find its location, but I do not get any output in my terminal upon running those commands.

Could you please let me know how I could find the location on the "mongod" command so that I can run it locally? Thank you.

GoBlueDev
  • 73
  • 3
  • Is mongo installed on your system? – wak786 Oct 09 '20 at 16:38
  • 1
    So I'm not quite sure what happened, but I just followed https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/ and the issue resolved itself. I am not sure if mongo was properly installed otherwise. – GoBlueDev Oct 09 '20 at 16:46
  • I think one thing I did differently was run the installation commands in my root directory instead of a project directory, but I am not sure if that would make a difference. – GoBlueDev Oct 09 '20 at 16:55

0 Answers0