Estou iniciando em NoSQL e escolhi o mongoDB como a primeira opção so que estou tendo alguns probleminhas. Quando tento inicializar o mongodb
criei o directorio para a base de dadosc:\MongoDB>mkdir data/db
e em seguida corri a aplicação so que deu o erro abaixo
c:\MongoDB>mongod.exe
mongod.exe --help for help and startup options
Thu Oct 25 10:28:20
Thu Oct 25 10:28:20 warning: 32-bit servers don't have journaling enabled by def
ault. Please use --journal if you want durability.
Thu Oct 25 10:28:20
Thu Oct 25 10:28:20 [initandlisten] MongoDB starting : pid=7796 port=27017 dbpat
h=\data\db\ 32-bit host=Danilo-HP
Thu Oct 25 10:28:20 [initandlisten]
Thu Oct 25 10:28:20 [initandlisten] ** NOTE: when using MongoDB 32 bit, you are
limited to about 2 gigabytes of data
Thu Oct 25 10:28:20 [initandlisten] ** see http://blog.mongodb.org/post/13
7788967/32-bit-limitations
Thu Oct 25 10:28:20 [initandlisten] ** with --journal, the limit is lower
Thu Oct 25 10:28:20 [initandlisten]
Thu Oct 25 10:28:20 [initandlisten] db version v2.2.0, pdfile version 4.5
Thu Oct 25 10:28:20 [initandlisten] git version: f5e83eae9cfbec7fb7a071321928f00
d1b0c5207
Thu Oct 25 10:28:20 [initandlisten] build info: windows sys.getwindowsversion(ma
jor=6, minor=0, build=6002, platform=2, service_pack='Service Pack 2') BOOST_LIB
_VERSION=1_49
Thu Oct 25 10:28:20 [initandlisten] options: {}
Thu Oct 25 10:28:20 [initandlisten] exception in initAndListen: 10296
*********************************************************************
ERROR: dbpath (\data\db\) does not exist.
Create this directory or give existing directory in --dbpath.
See http://dochub.mongodb.org/core/startingandstoppingmongo
*********************************************************************
, terminating
Thu Oct 25 10:28:20 dbexit:
Thu Oct 25 10:28:20 [initandlisten] shutdown: going to close listening sockets..
.
Thu Oct 25 10:28:20 [initandlisten] shutdown: going to flush diaglog...
Thu Oct 25 10:28:20 [initandlisten] shutdown: going to close sockets...
Thu Oct 25 10:28:20 [initandlisten] shutdown: waiting for fs preallocator...
Thu Oct 25 10:28:20 [initandlisten] shutdown: closing all files...
Thu Oct 25 10:28:20 [initandlisten] closeAllFiles() finished
Thu Oct 25 10:28:20 dbexit: really exiting now
tentei adicionar o --dbpath mas nao resultou ai ficou parado como mostra o código abaixo
c:\MongoDB>mongod.exe --dbpath "C:\MongoDB\data\db"
Thu Oct 25 10:28:53
Thu Oct 25 10:28:53 warning: 32-bit servers don't have journaling enabled by def
ault. Please use --journal if you want durability.
Thu Oct 25 10:28:53
Thu Oct 25 10:28:53 [initandlisten] MongoDB starting : pid=7440 port=27017 dbpat
h=C:\MongoDB\data\db 32-bit host=Danilo-HP
Thu Oct 25 10:28:53 [initandlisten]
Thu Oct 25 10:28:53 [initandlisten] ** NOTE: when using MongoDB 32 bit, you are
limited to about 2 gigabytes of data
Thu Oct 25 10:28:53 [initandlisten] ** see http://blog.mongodb.org/post/13
7788967/32-bit-limitations
Thu Oct 25 10:28:53 [initandlisten] ** with --journal, the limit is lower
Thu Oct 25 10:28:53 [initandlisten]
Thu Oct 25 10:28:53 [initandlisten] db version v2.2.0, pdfile version 4.5
Thu Oct 25 10:28:53 [initandlisten] git version: f5e83eae9cfbec7fb7a071321928f00
d1b0c5207
Thu Oct 25 10:28:53 [initandlisten] build info: windows sys.getwindowsversion(ma
jor=6, minor=0, build=6002, platform=2, service_pack='Service Pack 2') BOOST_LIB
_VERSION=1_49
Thu Oct 25 10:28:53 [initandlisten] options: { dbpath: "C:\MongoDB\data\db" }
Thu Oct 25 10:28:53 [initandlisten] Unable to check for journal files due to: bo
ost::filesystem::basic_directory_iterator constructor: The system cannot find th
e path specified: "C:\MongoDB\data\db\journal"
Thu Oct 25 10:28:53 [initandlisten] waiting for connections on port 27017
Thu Oct 25 10:28:53 [websvr] admin web console waiting for connections on port 2
8017