Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start MongoDB with git bash

Tags:

bash

mongodb

kevin@KEVIN-PC MINGW64 /C/MongoDB/bin
$ ls
bsondump.exe*  mongodump.exe*    mongoperf.exe*     mongotop.exe*
libeay32.dll*  mongoexport.exe*  mongorestore.exe*  ssleay32.dll*
mongo.exe*     mongofiles.exe*   mongos.exe*
mongod.exe*    mongoimport.exe*  mongos.pdb
mongod.pdb     mongooplog.exe*   mongostat.exe*

kevin@KEVIN-PC MINGW64 /C/MongoDB/bin
$ mongod.exe
bash: mongod.exe: command not found

I installed the mongoDB with version Windows 64-bit 2008 R2+ on my windows8.1. Could anyone tell me why I got command not found error when start the mongod.exe?

like image 769
user5192042 Avatar asked Oct 19 '22 23:10

user5192042


1 Answers

try ./mongod to run the executable to begin the server then open a second window/terminal. navigate to the same location as your server, then run ./mongo. Should be set!

like image 57
Starlord Avatar answered Nov 03 '22 23:11

Starlord