<div dir="ltr" style="text-align: left;">In this tutorial, we will show you how to install <b><i>MongoDB </i></b>on Windows. There are following steps to Install <b><i>MongoDB </i></b>on windows OS.</p>
<h2><b>Step: 1. Download MongoDB-</b></h2>
<p>Download the MongoDB from the official <a href="http://www.mongodb.org/downloads" target="_blank" rel="noopener">MongoDB website</a>. Pre built binary packages of MongoDb are available for both 32 bit and 64 bit. You can download it, and install.</p>
<h2><b>Step: 2. Unzip MongoDB folder <i>and creating directory</i>&#8211; </b></h2>
<p>Unzip it to your prefer location, for example : <b>C:mongodb</b></p>
<h2><b>Step: 3. Review MongoDB folder-</b></h2>
<p>In MongoDB v2.2.2, it contains only 13 executable files (exe) in the bin folder.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/01/mongodb.png" border="0" /></div>
<h2><b>Step: 4. Set Up The Environment</b></h2>
<p>MongoDB requires a <a class="reference internal" href="http://docs.mongodb.org/manual/reference/glossary/#term-dbpath" target="_blank" rel="noopener"><em class="xref std std-term">data folder</em></a> to store its files. The default location for the MongoDB data directory is C:datadb. Create this folder using the <em class="guilabel">Command Prompt</em>. Issue the following command sequence:</p>
<div class="highlight-powershell">
<div class="highlight">
<pre>md data 
md datadb 
</pre>
</div>
</div>
<div class="admonition note">
<div class="first admonition-title">Note</div>
<p>You may specify an alternate path for datadb with the <a class="reference internal" title="dbpath" href="http://docs.mongodb.org/manual/reference/configuration-options/#dbpath" target="_blank" rel="noopener">dbpath</a> setting for <a class="reference internal" title="mongod.exe" href="http://docs.mongodb.org/manual/reference/mongod.exe/#mongod.exe" target="_blank" rel="noopener">mongod.exe</a>, as in the following example:</p>
<div class="highlight-powershell">
<pre class="highlight">C:mongodbbinmongod.exe --dbpath d:testmongodbdata</pre>
</div>
<p>If your path includes spaces, enclose the entire path in double quotations, for example:</p>
<div class="last highlight-powershell">
<pre class="highlight">C:mongodbbinmongod.exe --dbpath "d:testmongo db data"</pre>
</div>
</div>
<h2><b>Step: 5. Run the MongoDb server from command prompt</b></h2>
<p>To run MongoDb server from command prompt, you have to execute mongod.exe file from bin folder of mongodb folder.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/01/mongodbcmd-1.png" width="600" height="328" border="0" /></div>
<h2><b>Step: 6. In additional, MongoDB come with a web admin interface listening on port 28017.</b></h2>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/01/mongodbtutorials-1024x576.png" width="600" height="359" border="0" /></div>
<h2><b>Step: 7. Connect to MongoDB</b></h2>
<h2>
<img class="aligncenter" src="https://dineshonjava.com/wp-content/uploads/2013/01/mongo-1.png" border="0" /></h2>
<p> ;</p>
<div style="background-color: #ff99cc;"> <b> <;<;<a href="https://dineshonjava.com/introduction-to-mongodb/">previous</a><;<; || <a href="https://dineshonjava.com/introduction-to-mongodb/">index </a>|| >;>;<a href="https://dineshonjava.com/mongodb-hello-world-example/">next</a>>;>;</b></div>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/introduction-to-mongodb/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/mongodb-hello-world-example/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '596'});
});
</script>
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…