Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mongod command not found (Windows7)(node.js)

I have been trying to get my mongodb going for about a day now. The problem seems to be that the mongod command is not found. I have the npm package mongoose installed in my node.js build. When i try to start the server with the mongod command the git bash returns that the command is not found.

I have been googleing for an answer and it looks like i need to make mongodb into a command, i'm not sure how to do this. Any advice would help.

I have downloaded the mongodb into my files it's located here C:\Program Files\MongoDB\Server\3.0 ( Not sure if that matters or not).

Really not sure what to do from here.

like image 586
Tristan Marr Avatar asked Jun 14 '15 22:06

Tristan Marr


People also ask

Why mongod command is not working?

mongo is not recognized as an internal or external command This error usually occurs because the system can not find the executable that you are asking to launch so to launch the file you have to provide the full path and after that, it will run without any issues.

What is mongod command?

mongod is a background process used by MongoDB. The main purpose of mongod is to manage all the MongoDB server tasks. For instance, accepting requests, responding to client, and memory management. mongo is a command line shell that can interact with the client (for example, system administrators and developers).


1 Answers

Add the mongo's path to the PATH environment variable.

Reference: https://youtu.be/sBdaRlgb4N8?t=120

like image 94
Peter Kulik Avatar answered Oct 14 '22 06:10

Peter Kulik