‘mongod’ is not recognized as an internal or external command,
operable program or batch file.
Hi Jim,
If you would like to execute mongod not from its installation directory, you could add the MongoDB installation bin path to the system environment %PATH% variable.
In Windows 7, you can change the PATH system environment variable by:
My Computer, right-click and choose Properties. System Properties (or Advanced system settings), click on the Advanced tab. Advanced section, click on the Environment Variables button. Path under System variables section and click the Edit button. bin installation directory should be C:\Program Files\MongoDB\Server\3.2\bin. Each different directory is separated with a semicolon (;). mongod. There is currently an open ticket in MongoDB JIRA issue tracker to change the Windows msi installer to add MongoDB binaries to the PATH: SERVER-15682. Please feel free to watch or upvote for updates.
running mongod from c:\Program Files\MongoDB\Server\3.2\bin:
en: 29 Data directory c:\data\db\ not found., terminating
2016-01-12T10:38:54.911-0500 I CONTROL [initandlisten] dbexit: rc: 100
After the installation, first you need to set up MongoDB environment. MongoDB requires a data directory to store all data. The default data directory path is C:\data\db, which according to the error message that you are seeing has not been created yet.
See Running MongoDB Community Edition (Windows) for more details.
Kind regards,
Wan.