Download the MongoDB from the official MongoDB website. Pre built binary packages of MongoDb are available for both 32 bit and 64 bit. You can download it, and install.
Unzip it to your prefer location, for example : C:mongodb
In MongoDB v2.2.2, it contains only 13 executable files (exe) in the bin folder.
MongoDB requires a data folder to store its files. The default location for the MongoDB data directory is C:datadb. Create this folder using the Command Prompt. Issue the following command sequence:
md data
md datadb
You may specify an alternate path for datadb with the dbpath setting for mongod.exe, as in the following example:
C:mongodbbinmongod.exe --dbpath d:testmongodbdata
If your path includes spaces, enclose the entire path in double quotations, for example:
C:mongodbbinmongod.exe --dbpath "d:testmongo db data"
To run MongoDb server from command prompt, you have to execute mongod.exe file from bin folder of mongodb folder.
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…