It is correctly written over here.
If you download the .msi file, install it, and if you download the zip file, extract it.
Set up your MongoDB environment.
MongoDB requires a data directory to store all data . The default path of the data directory is MongoDBs \ data \ db . Create this folder using the following commands from the command line:
md \data\db
You can specify an alternative path for data files using the --dbpath option for mongod.exe, for example:
C:\mongodb\bin\mongod.exe --dbpath d:\test\mongodb\data
If your path includes spaces, enclose the entire path in double quotes, for example:
C:\mongodb\bin\mongod.exe --dbpath "d:\test\mongo db data"
You can also specify dbpath in the configuration file.
Launch MongoDB.
To start MongoDB, run mongod.exe. For example, from the command line:
C:\mongodb\bin\mongod.exe
Connect to MongoDB.
To connect to MongoDB through the mongo.exe shell, open another command prompt.
C:\mongodb\bin\mongo.exe
vipin May 7 '16 at 19:31 2016-05-07 19:31
source share