So your front-end web application speaks to your back-end application, which in turn speaks to the database. In the same way a web server needs to be running to accept requests and send back responses in order to work, a database needs to be running on its own server too. You've got those 2 very popular databases installed on your local machine now! One of the trickiest things for a beginner to grasp is the idea of the database running on it's own server on its own port. Or you could use one of these other methods if you really want. Instead, hit Control + c to quit the process. Don't just close the terminal window with the mongod process running. When you're done using MongoDB for the time being (as in, until the next time you're developing) it's best to shut it down cleanly. To show current running services: brew services list. If you have mongodb installed via homebrew, homebrew actually has a handy brew services command. Ask Question Asked 7 years, 2 months ago. This window will be taken over by the MongoDB process, and you'll need to leave this running as long as you are planning on doing work with MongoDB. sudo service command not found when installing mongodb. If the above command didn't work, open a terminal window and type mongod. If running that line doesn't give you an error, you're all set to go and can skip the next section, "Running the MongoDB Server". That is the current version at the time of this tutorial.
BREW INSTALL MONGODB MONGOD NOT FOUND INSTALL
As you can see this command is going to install MongoDB Community Version 5.0. (At the time of writing this article, the command was brew install Once brew finishes installing MongoDB, it should show a message telling you that you can start the MongoDB server running by using an upstart process (a process that runs as soon as your machine starts up) by running the command brew services start mongodb/brew/mongodb-community. Then you can install MongoDB in your system with the following command. Done E: Version 3.4.16 for mongodb-org was not found E: Version 3.4.16 for mongodb-org-server was not found E: Version 3.4.16 for mongodb-org-shell was not found E: Version 3.4.16 for mongodb-org-mongos was not found E: Version 3.4.
BREW INSTALL MONGODB MONGOD NOT FOUND UPDATE
![brew install mongodb mongod not found brew install mongodb mongod not found](https://remysharp.com/images/mongo-connect.png)
If it responds by telling you the version number installed on your machine, just do a brew update.