I have installed mongodb and was trying to run with macbook zsh:
mongod --config /usr/local/etc/mongod.conf
But I get this error:
zsh: command not found: mongod
I have tried these stack overflow answers and it didnt work.
If you have installed mongo correctly then it is likely not reachable via your PATH variable. I would recommend following the official mongodb instructions for installing mongo using homebrew.
https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/
Once that is done you should be able to restart your terminal and be able to run the command provided.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.