start MongoDB on windows

I read this doc to learn how to start MongoDB on windows and write some useful note there

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

 

1. Start MongoDB

To start MongoDB, execute from the Command Prompt:

C:\mongodb\bin\mongod.exe

 

You may specify an alternate path for \data\db with the dbpath setting for mongod.exe, as in the following example:

C:\mongodb\bin\mongod.exe --dbpath d:\test\mongodb\data

 

2.Connect to MongoDB

Connect to MongoDB using the mongo.exe shell. Open another Command Prompt and issue the following command:

C:\mongodb\bin\mongo.exe

(注意这里是另起一个cmd去做数据库的操作)

 

 

 

 

 

posted on 2014-04-07 17:09  desperadom  阅读(143)  评论(0)    收藏  举报