Error starting MongoDB on Windows 7 [32-bit]

I followed the blog (link) to install and configure MongoDB on my system [Windows 7 32 bit].

As the blogger said, I downloaded mongodb-win32-i386-2.6.5 and extracted it in D: / mongodb / and after

Installing everything is fine, but when I try to start the service using the following command,

 D:\mongodb\bin>net start MongoDB

I got an error response like,

System error 2 has occurred.

The system cannot find the file specified.

How to solve this?


Update: log file

2014-11-19T16: 43: 25.356 + 0530 [DataFileSync] flushing the diagnosis

2014-11-19T16: 43: 25.403 + 0530 [initandlisten] MongoDB start: pid = 5128 port = 27017 dbpath = D: \ mongodb \ data 32-bit host = AVVENIRE-JAVA

2014-11-19T16: 43: 25.403 + 0530 [initandlisten]

2014-11-19T16: 43: 25.403 + 0530 [initandlisten] ** NOTE. This is a 32-bit bit of MongoDB.

2014-11-19T16: 43: 25.403 + 0530 [initandlisten] ** 32- 2 ( - -journal).

2014-11-19T16: 43: 25.403 + 0530 [initandlisten] ** . http://dochub.mongodb.org/core/32bit

2014-11-19T16: 43: 25.404 + 0530 [initandlisten]

2014-11-19T16: 43: 25.404 + 0530 [initandlisten] targetMinOS: Windows XP SP3

2014-11-19T16: 43: 25.404 + 0530 [initandlisten] db v2.6.1

2014-11-19T16: 43: 25.404 + 0530 [initandlisten] git : 4b95b086d2374bdcfcdf2249272fb552c9c726e8

2014-11-19T16: 43: 25.404 + 0530 [initandlisten] build info: windows sys.getwindowsversion(major = 6, minor = 0, build = 6002, platform = 2, service_pack = 'Service Pack 2') BOOST_LIB_VERSION = 1_49

2014-11-19T16: 43: 25.404 + 0530 [initandlisten] : 2014-11-19T16: 43: 25.404 + 0530 [initandlisten] options: {config: "d:\mongodb\mongo.config", diaglog: 3, net: {bindIp: "127.0.0.1", : 27017}, : {dbPath: "D:\mongodb\data", : {enabled: true}}, systemLog: {destination: "file", logAppend: true, path: "D:\mongodb\log\mongo.log", quiet: true}}

2014-11-19T16: 43: 25.483 + 0530 [initandlisten] journal dir = D:\mongodb\data\journal

2014-11-19T16: 43: 25.484 + 0530 [initandlisten] : ,

2014-11-19T16: 43: 25.770 + 0530 [initandlisten] 27017

2014-11-19T16: 44: 25.439 + 0530 [DataFileSync] flushing diag log

2014-11-19T16: 45: 25.361 + 0530 [DataFileSync] flushing diag log

2014-11-19T16: 46: 25.360 + 0530 [DataFileSync]

2014-11-19T16: 46: 31.869 + 0530 [conn1] ,

2014-11-19T16: 46: 31.869 + 0530 [conn1] dbexit: shutdown

2014-11-19T16: 46: 31.869 + 0530 [conn1] shutdown: ...

2014-11-19T16: 46: 31.869 + 0530 [conn1] : 540

2014-11-19T16: 46: 31.869 + 0530 [conn1] shutdown: ...

2014-11-19T16: 46: 31.869 + 0530 [conn1] flushing diag log

2014-11-19T16: 46: 31.869 + 0530 [conn1] shutdown: ...

2014-11-19T16: 46: 31.870 + 0530 [conn1] shutdown: fs preallocator...

2014-11-19T16: 46: 31.870 + 0530 [conn1] shutdown: ...

2014-11-19T16: 46: 31.870 + 0530 [conn1] shutdown: final commit...

2014-11-19T16: 46: 31.873 + 0530 [conn1] shutdown: ...

2014-11-19T16: 46: 31.873 + 0530 [conn1] closeAllFiles()

2014-11-19T16: 46: 31.873 + 0530 [conn1] journalCleanup...

2014-11-19T16: 46: 31.889 + 0530 [conn1] removeJournalFiles

2014-11-19T16: 46: 31.891 + 0530 [conn1] shutdown: fs...

2014-11-19T16: 46: 31.891 + 0530 [conn1] dbexit:

2014-11-19T16: 47: 08.985 + 0530 ***** SERVER RESTARTED *****

2014-11-19T16: 47: 08.985 + 0530 Windows "MongoDB"

2014-11-19T16: 47: 08.985 + 0530 "MongoDB",


2 ( @disposer):

enter image description here

+4
3

net delete MongoDB

mongo :

C:\mongodb\bin\mongod --bind_ip  0.0.0.0 --logpath  "C:\Data\db\log.txt"  --logappend  --dbpath  "C:\Data\db"  --port 27017 --serviceName "MongoDB" --serviceDisplayName "MongoDB" --install

net start MongoDB

+4

@http://downloads.mongodb.org/win32/mongodb-win32-i386-v3.2-latest-signed.msi?_ga=1.10304565.1436936475.1490595203

E: mongod  @ E:\Program Files\MongoDB\Server\3.2\bin > mongod --storageEngine = mmapv1 --dbpath C:\data\db

, , 32-, --storageEngine = mmapv1 (c:) -dbpath C:\data\db

, mongobooster http://s3.mongobooster.com/download/3.5/mongobooster-3.5.3.exe GUI mongodb. .try samples @https://www.youtube.com/playlist?list=PL6gx4Cwl9DGDQ5DrbIl20Zu9hx1IjeVhO

+3

.

  • bin (C:\Program Files\MongoDB\Server\3.2\bin) mongod --storageEngine = mmapv1 --dbpath C:\data\db CMD.

  • CMD ( 1- ) bin (C:\Program Files\MongoDB\Server\3.2\bin), mongo.exe

,

0

All Articles