Error starting MongoDB in windows 7 [32-bit] -
i followed blog(link) install , configure mongodb in system[windows 7 32 bit].
as per blogger said, have download mongodb-win32-i386-2.6.5 , extract d:/mongodb/ , followed blog
upto installation alright, when try start service using following command,
d:\mongodb\bin>net start mongodb
i got error response as,
system error 2 has occurred. system cannot find file specified.
how solve ?
update : log file
2014-11-19t16:43:25.356+0530 [datafilesync] flushing diag log
2014-11-19t16:43:25.403+0530 [initandlisten] mongodb starting : 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: 32 bit mongodb binary.
2014-11-19t16:43:25.403+0530 [initandlisten] ** 32 bit builds limited less 2gb of data (or less --journal).
2014-11-19t16:43:25.403+0530 [initandlisten] ** see 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 version v2.6.1
2014-11-19t16:43:25.404+0530 [initandlisten] git version: 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] allocator: system 2014-11-19t16:43:25.404+0530 [initandlisten] options: { config: "d:\mongodb\mongo.config", diaglog: 3, net: { bindip: "127.0.0.1", port: 27017 }, storage: { dbpath: "d:\mongodb\data", journal: { 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] recover : no journal files present, no recovery needed
2014-11-19t16:43:25.770+0530 [initandlisten] waiting connections on port 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] flushing diag log
2014-11-19t16:46:31.869+0530 [conn1] terminating, shutdown command received
2014-11-19t16:46:31.869+0530 [conn1] dbexit: shutdown called
2014-11-19t16:46:31.869+0530 [conn1] shutdown: going close listening sockets...
2014-11-19t16:46:31.869+0530 [conn1] closing listening socket: 540
2014-11-19t16:46:31.869+0530 [conn1] shutdown: going flush diaglog...
2014-11-19t16:46:31.869+0530 [conn1] flushing diag log
2014-11-19t16:46:31.869+0530 [conn1] shutdown: going close sockets...
2014-11-19t16:46:31.870+0530 [conn1] shutdown: waiting fs preallocator...
2014-11-19t16:46:31.870+0530 [conn1] shutdown: lock final commit...
2014-11-19t16:46:31.870+0530 [conn1] shutdown: final commit...
2014-11-19t16:46:31.873+0530 [conn1] shutdown: closing files...
2014-11-19t16:46:31.873+0530 [conn1] closeallfiles() finished
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: removing fs lock...
2014-11-19t16:46:31.891+0530 [conn1] dbexit: exiting now
2014-11-19t16:47:08.985+0530 ***** server restarted *****
2014-11-19t16:47:08.985+0530 trying install windows service 'mongodb'
2014-11-19t16:47:08.985+0530 there service named 'mongodb', aborting
update 2(result of @disposer's suggestion):
run command window administrator , run net delete mongodb
for running mongo service use this:
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
then run command window administrator , run net start mongodb
Comments
Post a Comment