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 dados
c:\MongoDB>mkdir data/db
e em seguida corri a aplicação so que deu o erro abaixo
[code]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
, 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[/code]
tentei adicionar o --dbpath mas nao resultou ai ficou parado como mostra o código abaixo
[code]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
[quote=Spammer]
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
[/quote]
Cara pra fazer o start do MongoDB e esse comando mesmo mongod.exe --dbpath …\seu-path-do-banco-aqui\db pra verificar se tudo esta correto coloque um –rest
e acesso no navegador http://127.0.0.1:28017
[quote]
Cara pra fazer o start do MongoDB e esse comando mesmo mongod.exe --dbpath …\seu-path-do-banco-aqui\db pra verificar se tudo esta correto coloque um –rest
e acesso no navegador http://127.0.0.1:28017[/quote]
onde fica exactamente o rest e qual a funcao… quando corro o comando dessa forma nao permite que eu ponha comandos na janela, tendo que abrir outra janela para tal
[quote]
Cara pra fazer o start do MongoDB e esse comando mesmo mongod.exe --dbpath …\seu-path-do-banco-aqui\db pra verificar se tudo esta correto coloque um –rest
e acesso no navegador http://127.0.0.1:28017[/quote]
onde fica exactamente o rest e qual a funcao… quando corro o comando dessa forma nao permite que eu ponha comandos na janela, tendo que abrir outra janela para tal[/quote]
Cara o parâmetro --rest nada mais é do que habilitar uma interface web pra ser acessa e obter informações sobre o MongoDB.
no seu caso o comando ficaria algo como c:\MongoDB>mongod.exe --rest --dbpath “C:\MongoDB\data\db”.
Após o comando vá no seu navegador e acesse http://127.0.0.1:28017
[quote]
Cara pra fazer o start do MongoDB e esse comando mesmo mongod.exe --dbpath …\seu-path-do-banco-aqui\db pra verificar se tudo esta correto coloque um –rest
e acesso no navegador http://127.0.0.1:28017[/quote]
onde fica exactamente o rest e qual a funcao… quando corro o comando dessa forma nao permite que eu ponha comandos na janela, tendo que abrir outra janela para tal[/quote]
Cara o parâmetro --rest nada mais é do que habilitar uma interface web pra ser acessa e obter informações sobre o MongoDB.
no seu caso o comando ficaria algo como c:\MongoDB>mongod.exe --rest --dbpath “C:\MongoDB\data\db”.
Após o comando vá no seu navegador e acesse http://127.0.0.1:28017[/quote]