{"id":44166,"date":"2015-09-23T21:11:48","date_gmt":"2015-09-23T18:11:48","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=44166"},"modified":"2023-12-06T15:02:34","modified_gmt":"2023-12-06T13:02:34","slug":"mongodb-installation-how-to-install-mongodb","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html","title":{"rendered":"MongoDB Installation &#8211; How to install MongoDB"},"content":{"rendered":"<p><em>This article is part of our Academy Course titled <a href=\"http:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-a-scalable-nosql-db\/\">MongoDB \u2013 A Scalable NoSQL DB<\/a>.<\/em><\/p>\n<p><em>In this course, you will get introduced to MongoDB. You will learn how to install it and how to operate it via its shell. Moreover, you will learn how to programmatically access it via Java and how to leverage Map Reduce with it. Finally, more advanced concepts like sharding and replication will be explained. Check it out <a href=\"http:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-a-scalable-nosql-db\/\">here<\/a>!<\/em><\/p>\n<div class=\"toc\">\n<h4>Table Of Contents<\/h4>\n<dl>\n<dt><a href=\"#introduction\">1. Introduction<\/a><\/dt>\n<dt><a href=\"#license\">2. License<\/a><\/dt>\n<dt><a href=\"#documentation\">3. Documentation<\/a><\/dt>\n<dt><a href=\"#architecture\">4. Architecture Overview<\/a><\/dt>\n<dt><a href=\"#installing_mongoDB\">5. Installing MongoDB<\/a><\/dt>\n<dd>\n<dl>\n<dt><a href=\"#windows\">5.1. Installing MongoDB on Windows<\/a><\/dt>\n<dt><a href=\"#linux\">5.2. Installing MongoDB on Linux<\/a><\/dt>\n<dt><a href=\"#macOS\">5.3. Installing MongoDB on MacOS X<\/a><\/dt>\n<\/dl>\n<\/dd>\n<dt><a href=\"#tools\">6. MongoDB Server and Tools<\/a><\/dt>\n<dt><a href=\"#running_mongoDB\">7. Running MongoDB<\/a><\/dt>\n<dt><a href=\"#what's_next\">8. What&#8217;s next<\/a><\/dt>\n<\/dl>\n<\/div>\n<h2><a name=\"introduction\"><\/a>1. Introduction<\/h2>\n<p>The NoSQL movement gave birth to a vast amount of different data stores to cover the needs of mostly any imaginable application: key\/value stores, graph databases, document databases, \u2026 In this tutorial we are going to cover the distinguishing member of document data stores family \u2013 <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> (<a href=\"http:\/\/www.mongodb.org\/\">http:\/\/www.mongodb.org\/<\/a>). The quote is from the <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> site:<\/p>\n<blockquote>\n<p>\u201cMongoDB (from &#8220;humongous&#8221;) is an open-source document database, and the leading NoSQL database,  written in C++.\u201d<\/p>\n<\/blockquote>\n<p>This brief and simple definition outlines the main design goal of the <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> as being storage of documents. With no surprise, document is just a set of fields (or properties) and their values, with no particular schema defined or required.<\/p>\n<p><a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> is quite a mature product. With the latest release at the moment of writing being <strong>2.6 <\/strong>(<a href=\"http:\/\/www.mongodb.org\/downloads\">http:\/\/www.mongodb.org\/downloads<\/a>), <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> brings following key features:<\/p>\n<ul>\n<li>Stores JSON-style documents with dynamic schemas.<\/li>\n<li>Full index support: index on any document\u2019s attribute.<\/li>\n<li>Replication and high availability.<\/li>\n<li>Auto-sharding for horizontal scaling.<\/li>\n<li>Rich, document-based queries support.<\/li>\n<li>Fast and atomic in-place document updates.<\/li>\n<li>Out of the box Map\/Reduce support for aggregation and data processing.<\/li>\n<li>GridFS file system.<\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> is an excellent choice if it fits into your application architecture, data access patterns and storage requirements. In this part of the tutorial we are going to cover the <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> installation procedure on different operating systems.<\/p>\n<h2><a name=\"license\"><\/a>2. License<\/h2>\n<p><a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> itself is distributed under Free Software Foundation\u2019s <a href=\"http:\/\/www.fsf.org\/licensing\/licenses\/agpl-3.0.html\">GNU AGPL v3.0 license<\/a>. The drivers for different programming languages which are supported by <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> are released under <a href=\"http:\/\/www.apache.org\/licenses\/LICENSE-2.0\">Apache License v2.0<\/a> license. For more details about licensing please refer to the <a href=\"http:\/\/www.mongodb.org\/about\/licensing\/\">official documentation<\/a>.<\/p>\n<h2><a name=\"documentation\"><\/a>3. Documentation<\/h2>\n<p><a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> team provides an excellent and up to date documentation available online: <a href=\"http:\/\/docs.mongodb.org\/manual\/\">http:\/\/docs.mongodb.org\/manual\/<\/a>. It is a great source to get the comprehensive overview of <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> and its features. Throughout the tutorial, we will refer a lot to the different sections of <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> documentation so you can jump quickly to the relevant topic.<\/p>\n<h2><a name=\"architecture\"><\/a>4. Architecture Overview<\/h2>\n<p>At the top of <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> data model hierarchy is a database. Database is a physical container for collections. Each database gets its own set of files on the file system and a single MongoDB server can have multiple databases.<\/p>\n<p>All documents are grouped into collections. A collection is the equivalent of an RDBMS table and exists within a single database. Collections do not enforce a schema and documents within a collection can have different fields. From data modeling prospective, it is recommended that all documents in a collection should have a similar structure or at least be somehow related.<\/p>\n<p>A document forms a record in a <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> collection and is the basic unit of data in <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a>. Documents are analogous to <strong>JSON<\/strong> objects but exist in the database in a more type-rich format known as <a href=\"http:\/\/bsonspec.org\/\">BSON<\/a> (<strong>binary<\/strong> <strong>JSON<\/strong>).<\/p>\n<p>Although <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> is not an in-memory data store, it uses the technique called <a href=\"http:\/\/en.wikipedia.org\/wiki\/Memory-mapped_file\">memory-mapped files<\/a> to increase I\/O performance.<\/p>\n<h2><a name=\"installing_mongoDB\"><\/a>5. Installing MongoDB<\/h2>\n<p>The one of the strongest point of <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> is a very easy installation procedure, no matter which platform you are targeting. It literally follows the download-and-run pattern, no additional configuration required. The installation packages are provided for all major operation systems: <strong>Windows<\/strong>, <strong>Linux<\/strong> and <strong>MacOS X<\/strong>. In this section we are going to cover <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> install procedure for all the platforms mentioned above.<\/p>\n<p>For Windows and Linux operating systems both 32-bit and 64-bit version are provided, however the recommended platform for running <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> server processes is 64-bit.<\/p>\n<p><strong>Note: <\/strong><a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> also provides prebuilt binary distribution for the <strong>Solaris<\/strong> platform. We are not going to cover this operation system here but the installation procedure is very similar to the <a href=\"#_Installing_MongoDB_on\">Linux one<\/a>.<\/p>\n<h3><a name=\"windows\"><\/a>5.1. Installing MongoDB on Windows<\/h3>\n<p>On a Windows platform, there are two ways <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> could be installed: from the Microsoft Installer package (<strong>*.msi<\/strong>) or from the archive. We are going to cover both options starting from simplest one, the archive.<\/p>\n<p>Whatever route you are going to pick, the resulting set of binary files will be the same so it is just a matter of a personal preference. Please notice that <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> does not support <strong>Windows XP<\/strong> or <strong>older<\/strong> Windows versions.<\/p>\n<h4>5.1.1 Installing from archive<\/h4>\n<p>To install <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> from the archive, it is enough to perform these two simple steps:<\/p>\n<ol>\n<li><strong>Download the distribution archive<\/strong><\/li>\n<ul>\n<li>For Windows 32-bit, please download the archive from: <a href=\"https:\/\/fastdl.mongodb.org\/win32\/mongodb-win32-i386-2.6.0.zip\">https:\/\/fastdl.mongodb.org\/win32\/mongodb-win32-i386-2.6.0.zip<\/a><\/li>\n<li>For Windows 64-bit, please download the archive from: <a href=\"https:\/\/fastdl.mongodb.org\/win32\/mongodb-win32-x86_64-2008plus-2.6.0.zip\">https:\/\/fastdl.mongodb.org\/win32\/mongodb-win32-x86_64-2008plus-2.6.0.zip<\/a>\n<ol start=\"2\"><\/li>\n<\/ul>\n<li><strong>Unpack the distribution archive<\/strong><\/li>\n<p>Once downloaded, please extract the archive to the convenient location on your local hard drive.\n<\/ol>\n<p>For more advanced installation options please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/tutorial\/install-mongodb-on-windows\/\">official documentation<\/a>.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<h4>5.1.2 Installing from MSI package<\/h4>\n<p>The procedure to install <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> from the prebuilt <strong>*.msi<\/strong> package is also very simple:<\/p>\n<ol>\n<li><strong>Download the distribution *.msi package<\/strong><\/li>\n<ul>\n<li>For Windows 32-bit, please download the <strong>*.msi<\/strong> package from: <a href=\"https:\/\/fastdl.mongodb.org\/win32\/mongodb-win32-i386-2.6.0.msi\">https:\/\/fastdl.mongodb.org\/win32\/mongodb-win32-i386-2.6.0.msi<\/a><\/li>\n<li>For Windows 64-bit, please download the <strong>*.msi<\/strong> package from: <a href=\"https:\/\/fastdl.mongodb.org\/win32\/mongodb-win32-x86_64-2008plus-2.6.0.msi\">https:\/\/fastdl.mongodb.org\/win32\/mongodb-win32-x86_64-2008plus-2.6.0.msi<\/a><\/li>\n<\/ul>\n<li><strong>Run the downloaded *.msi package<\/strong><\/li>\n<li><strong>Follow the Installation Wizard steps (optionally, pick the convenient location on your local hard drive)<\/strong><\/li>\n<\/ol>\n<p>In case you have decided to perform the typical installation, the default destination location will be <strong>C:\\Program Files\\MongoDB 2.6 Standard<\/strong>.<\/p>\n<p>For more advanced installation options please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/tutorial\/install-mongodb-on-windows\/\">official documentation<\/a>.<\/p>\n<h3><a name=\"linux\"><\/a>5.2. Installing MongoDB on Linux<\/h3>\n<p>To install <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> on Linux, the respective binaries are already prebuilt and provided as the distribution archives. Let us walk through the installation process step by step.<\/p>\n<ol>\n<li><strong>Download the distribution archive<\/strong><\/li>\n<ul>\n<li>For Linux 32-bit, please download the archive from: <a href=\"https:\/\/fastdl.mongodb.org\/linux\/mongodb-linux-i686-2.6.0.tgz\">https:\/\/fastdl.mongodb.org\/linux\/mongodb-linux-i686-2.6.0.tgz<\/a><\/li>\n<li>For Linux 64-bit, please download the archive from: <a href=\"https:\/\/fastdl.mongodb.org\/linux\/mongodb-linux-x86_64-2.6.0.tgz\">https:\/\/fastdl.mongodb.org\/linux\/mongodb-linux-x86_64-2.6.0.tgz<\/a><\/li>\n<\/ul>\n<li><strong>Unpack the distribution archive<\/strong><\/li>\n<ul>\n<li>For Linux 32-bit distribution archive: <strong>tar xf mongodb-linux-i686-2.6.0.tgz<\/strong> The <strong>mongodb-linux-i686-2.6.0<\/strong> folder should be created containing all the binaries.<\/li>\n<li>For Linux 64-bit distribution archive: <strong>tar xf mongodb-linux-x86_64-2.6.0.tgz<\/strong> The <strong>mongodb-linux-x86_64-2.6.0<\/strong> folder should be created containing all the binaries.<\/li>\n<\/ul>\n<\/ol>\n<p>One thing to notice is that the <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> distribution does not include control scripts (to be placed into <strong>\/etc\/init.d<\/strong>) to run the server component at system startup time. However, <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> provides own official packages which do deploy those scripts and could be installed using different package managers. The detailed installation instructions are available for <a href=\"http:\/\/docs.mongodb.org\/manual\/tutorial\/install-mongodb-on-ubuntu\/\">Ubuntu<\/a>, <a href=\"http:\/\/docs.mongodb.org\/manual\/tutorial\/install-mongodb-on-red-hat-centos-or-fedora-linux\/\">CentOS\/Fedora<\/a> and <a href=\"http:\/\/docs.mongodb.org\/manual\/tutorial\/install-mongodb-on-debian\/\">Debian<\/a>.<\/p>\n<p>For more advanced installation options and steps for different Linux distributions please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/administration\/install-on-linux\/\">official documentation<\/a>.<\/p>\n<h3><a name=\"macOS\"><\/a>5.3. Installing MongoDB on MacOS X<\/h3>\n<p>The installation on <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> is very similar to the <a href=\"#_Installing_MongoDB_on\">Linux version<\/a> except the fact that only 64-bit distribution is provided. Let us take a closer look on the installation steps.<\/p>\n<ol>\n<li><strong>Download the distribution archive<\/strong>: <a href=\"https:\/\/fastdl.mongodb.org\/osx\/mongodb-osx-x86_64-2.6.0.tgz\">https:\/\/fastdl.mongodb.org\/osx\/mongodb-osx-x86_64-2.6.0.tgz<\/a><\/li>\n<li><strong>Unpack the distribution archive<\/strong><br \/>\nOnce downloaded, please run the command: <\/p>\n<pre class=\"brush:bash\">tar xf mongodb-osx-x86_64-2.6.0.tgz<\/pre>\n<p>The <strong>mongodb-osx-x86_64-2.6.0 <\/strong>folder should be created containing all the binaries.<\/li>\n<\/ol>\n<p>For more advanced installation options please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/tutorial\/install-mongodb-on-os-x\/\">official documentation<\/a>.<\/p>\n<h2><a name=\"tools\"><\/a>6. MongoDB Server and Tools<\/h2>\n<p>The <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> binary distribution consists of several executables, representing server process itself and set of tools on top of it. By default, all executables are located inside the <strong>bin<\/strong> folder of the installed distribution.<\/p>\n<p>In this section we are going to look inside the distribution and go through every executable, covering both Linux and Windows versions.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"158\"><strong>Executable file name<\/strong><\/td>\n<td width=\"502\"><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongod<\/p>\n<p>mongod.exe<\/td>\n<td width=\"502\">The primary server (daemon) process for the <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> system. It handles data requests, manages data format, and performs background management operations.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongod\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongo<\/p>\n<p>mongo.exe<\/td>\n<td width=\"502\">An interactive JavaScript shell interface to <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a>, which provides a powerful interface for systems administrators as well as a way for developers to test queries and operations directly with the database. It also provides a fully functional JavaScript environment for use with a <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongo\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongos<\/p>\n<p>mongos.exe<\/td>\n<td width=\"502\">A routing service for <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> shard configurations that processes queries from the application layer, and determines the location of this data in the sharded cluster, in order to complete these operations. From the perspective of the application, a <strong>mongos \/ mongos.exe<\/strong> instance behaves identically to any other <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> instance.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongos\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongodump<\/p>\n<p>mongodump.exe<\/td>\n<td width=\"502\">A powerful utility for creating a binary export of the contents of the databases, very useful for creating effectively backups. It could be used in conjunction with <strong>mongorestore<\/strong> \/<strong> mongorestore.exe<\/strong> to restore databases. It can read data from either <strong>mongod<\/strong> \/ <strong>mongod.exe<\/strong> or <strong>mongos<\/strong> \/ <strong>mongos.exe<\/strong> instances, in addition to reading directly from <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> data files without an active <strong>mongod<\/strong> \/ <strong>mongod.exe <\/strong>running.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongodump\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongorestore<\/p>\n<p>mongorestore.exe<\/td>\n<td width=\"502\">This tool writes data from a binary database dump created by <strong>mongodump<\/strong> \/ <strong>mongodump.exe<\/strong> to a <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> instance. It can create a new database or add data to an existing database. Similarly to <strong>mongodump<\/strong> \/ <strong>mongodump.exe,<\/strong> it can write data to either <strong>mongod<\/strong> \/ <strong>mongod.exe<\/strong> or <strong>mongos<\/strong> \/ <strong>mongos.exe<\/strong> instances, in addition to writing directly to MongoDB data files without an active <strong>mongod<\/strong> \/ <strong>mongod.exe <\/strong>running.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongorestore\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongoexport<\/p>\n<p>mongoexport.exe<\/td>\n<td width=\"502\">A utility that produces a <strong>JSON<\/strong> or <strong>CSV<\/strong> exports of data stored in a <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> instance. It works in conjunction with <strong>mongoimport \/ mongoimport.exe<\/strong> utility, which provides the importing capability.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Note: <\/strong>It is not recommended to use this utility for full-scale production backups because it may not reliably capture data type information. It is recommended to use <strong>mongodump \/ mongodump.exe <\/strong>instead<strong>.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongoexport\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongoimport mongoimport.exe<\/td>\n<td width=\"502\">A utility that provides an ability to import content from a <strong>JSON<\/strong>, <strong>CSV<\/strong>, or <strong>TSV<\/strong> exports created by <strong>mongoexport<\/strong> \/ <strong>mongoexport.exe<\/strong>, or potentially, another third-party export tool. It works in conjunction with <strong>mongoexport<\/strong> <strong>\/ mongoexport.exe<\/strong> utility, which provides the exporting capability.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Note: <\/strong>It is not recommended to use this utility for full-scale production backups because it may not reliably capture data type information. It is recommended to use <strong>mongorestore \/ mongorestore.exe <\/strong>instead<strong>.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongoimport\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongotop<\/p>\n<p>mongotop.exe<\/td>\n<td width=\"502\">It is an important diagnostic utility which provides a method to track the amount of time a <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> instance spends reading and writing data. The statistics is provided on a per-collection level. By default, <strong>mongotop \/ mongotop.exe<\/strong> returns the values every second.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongotop\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongostat<\/p>\n<p>mongostat.exe<\/td>\n<td width=\"502\">A useful diagnostic utility which provides a quick overview of the status of a currently running <strong>mongod<\/strong> \/ <strong>mongod.exe <\/strong>or <strong>mongos<\/strong> \/ <strong>mongos.exe<\/strong> instance. By default, it connects to the instance running on the local host but it can connect to any accessible remote instance as well.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongostat\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongofiles<\/p>\n<p>mongofiles.exe<\/td>\n<td width=\"502\">This utility makes it possible to manipulate files stored in <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> instance in <strong>GridFS<\/strong> objects from the command line. It is particularly useful as it provides an interface between objects stored in your file system and <strong>GridFS<\/strong>. In addition, the tool can access <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> data files directly without an active <strong>mongod<\/strong> \/ <strong>mongod.exe <\/strong>running.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongofiles\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongooplog<\/p>\n<p>mongooplog.exe<\/td>\n<td width=\"502\">Although pretty low-level, it is a simple tool that polls operations from the replication oplog of a remote server, and applies them to the local server. This capability supports certain classes of real-time migrations that require that the source server remain online and in operation throughout the migration process.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongooplog\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">mongoperf<\/p>\n<p>mongoperf.exe<\/td>\n<td width=\"502\">A diagnostic utility which allows checking disk I\/O performance independently of <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a>. It can provide quite important insights about the expected performance characteristics of <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> instance running on this host.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/mongoperf\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"158\">bsondump<\/p>\n<p>bsondump.exe<\/td>\n<td width=\"502\">This is a diagnostic tool which allows to convert <strong>BSON<\/strong> (<a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> primary document storage format) files into human-readable formats, including <strong>JSON<\/strong>. It is useful for reading the output files generated by <strong>mongodump<\/strong> \/ <strong>mongodump.exe<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<p>For more details and command line arguments please refer to <a href=\"http:\/\/docs.mongodb.org\/manual\/reference\/program\/bsondump\/\">official documentation<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><a name=\"running_mongoDB\"><\/a>7. Running MongoDB<\/h2>\n<p>Once installed, <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> can be run from command line using <strong>mongod \/ mongod.exe <\/strong>executable. The only required parameter is the location to store database files which could be set using <strong>&#8211;dbpath<\/strong> command line argument.<\/p>\n<p>On Windows, assuming we are inside installed\/unpacked <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> distribution location, we can run the server using following steps:<\/p>\n<ol>\n<li>Create a data folder (we need to do that only once): <strong>mkdir data<\/strong><\/li>\n<li>Run MongoDB server: <strong>bin\\mongod.exe &#8211;dbpath data<\/strong><\/li>\n<\/ol>\n<p><figure id=\"attachment_4507\" aria-describedby=\"caption-attachment-4507\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/01.MONGOD-WINDOWS.png\"><img decoding=\"async\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/01.MONGOD-WINDOWS-1024x177.png\"><figcaption id=\"caption-attachment-4507\" class=\"wp-caption-text\">MongoDB<\/a> server has started successfully on Windows.<\/figcaption><\/figure><\/p>\n<p>To stop a running <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> server instance, it is enough to type <strong>CTRL-C<\/strong>.<\/p>\n<p>On Linux, the sequence of commands is exactly the same. Assuming we are inside unpacked <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> distribution location, let us do the following:<\/p>\n<ol>\n<li>Create a data folder (we need to do that only once): <strong>mkdir data<\/strong><\/li>\n<li>Run MongoDB server: <strong>bin\/mongod &#8211;dbpath data<\/strong><\/li>\n<\/ol>\n<p><figure id=\"attachment_4506\" aria-describedby=\"caption-attachment-4506\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/01.MONGOD-LINUX.png\"><img decoding=\"async\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/01.MONGOD-LINUX-1024x427.png\"><figcaption id=\"caption-attachment-4506\" class=\"wp-caption-text\">MongoDB<\/a> server has started successfully on Linux.<\/figcaption><\/figure><\/p>\n<p>Similarly, to stop a running <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> server instance, it is enough to type <strong>CTRL-C<\/strong>.<\/p>\n<p>The easiest way to verify that <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> server is up and running is to spawn the <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> shell. Let us see that on example by executing: <strong>bin\/mongo <\/strong>(or <strong>bin\\mongo.exe <\/strong>on Windows). By default, the shell tries to connect to <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> server instance on local machine and database with name <strong>test<\/strong>.<\/p>\n<p><figure id=\"attachment_4505\" aria-describedby=\"caption-attachment-4505\" style=\"width: 700px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/01.MONGO-SHELL.png\"><img decoding=\"async\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/01.MONGO-SHELL.png\"><figcaption id=\"caption-attachment-4505\" class=\"wp-caption-text\">MongoDB<\/a> server using interactive shell and issuing <strong>db.stats()<\/strong> command.<\/figcaption><\/figure><\/p>\n<p>Please don\u2019t worry if <strong>db.stats() <\/strong>command and its output confuse you. We are going to spend much more time on <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> shell in the next part, for now we are only checking that server is really ready to accept connections and to execute commands.<\/p>\n<h2><a name=\"what's_next\"><\/a>8. What&#8217;s next<\/h2>\n<p>This part gives us a first look on <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> and its features, introducing a couple of new terms specific to it: collections and documents. We also have seen how easy it is to install and run <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> on major operating systems, a big advantage for beginners to start using it.<\/p>\n<p>In the next part we are going to work closely with server internals, databases, collections and documents using <a href=\"http:\/\/www.mongodb.org\/\">MongoDB<\/a> shell and rich set of commands and queries.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article is part of our Academy Course titled MongoDB \u2013 A Scalable NoSQL DB. In this course, you will get introduced to MongoDB. You will learn how to install it and how to operate it via its shell. Moreover, you will learn how to programmatically access it via Java and how to leverage Map &hellip;<\/p>\n","protected":false},"author":141,"featured_media":187,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[112],"class_list":["post-44166","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-development","tag-mongodb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MongoDB Installation - How to install MongoDB - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"This article is part of our Academy Course titled MongoDB \u2013 A Scalable NoSQL DB. In this course, you will get introduced to MongoDB. You will learn how to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MongoDB Installation - How to install MongoDB - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"This article is part of our Academy Course titled MongoDB \u2013 A Scalable NoSQL DB. In this course, you will get introduced to MongoDB. You will learn how to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-23T18:11:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-06T13:02:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Andrey Redko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrey Redko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html\"},\"author\":{\"name\":\"Andrey Redko\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/771a6504862edc45322776832cbce413\"},\"headline\":\"MongoDB Installation &#8211; How to install MongoDB\",\"datePublished\":\"2015-09-23T18:11:48+00:00\",\"dateModified\":\"2023-12-06T13:02:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html\"},\"wordCount\":2538,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/mongodb-logo.jpg\",\"keywords\":[\"MongoDB\"],\"articleSection\":[\"Software Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html\",\"name\":\"MongoDB Installation - How to install MongoDB - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/mongodb-logo.jpg\",\"datePublished\":\"2015-09-23T18:11:48+00:00\",\"dateModified\":\"2023-12-06T13:02:34+00:00\",\"description\":\"This article is part of our Academy Course titled MongoDB \u2013 A Scalable NoSQL DB. In this course, you will get introduced to MongoDB. You will learn how to\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/mongodb-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/mongodb-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/mongodb-installation-how-to-install-mongodb.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Software Development\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/software-development\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"MongoDB Installation &#8211; How to install MongoDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/771a6504862edc45322776832cbce413\",\"name\":\"Andrey Redko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/16419ce8394173028eddaeb992859862bab50cfcf74589fa9bb9a3dd8bb27518?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/16419ce8394173028eddaeb992859862bab50cfcf74589fa9bb9a3dd8bb27518?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/16419ce8394173028eddaeb992859862bab50cfcf74589fa9bb9a3dd8bb27518?s=96&d=mm&r=g\",\"caption\":\"Andrey Redko\"},\"description\":\"Andriy is a well-grounded software developer with more then 12 years of practical experience using Java\\\/EE, C#\\\/.NET, C++, Groovy, Ruby, functional programming (Scala), databases (MySQL, PostgreSQL, Oracle) and NoSQL solutions (MongoDB, Redis).\",\"sameAs\":[\"http:\\\/\\\/aredko.blogspot.com\\\/\",\"http:\\\/\\\/ca.linkedin.com\\\/in\\\/aredko\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/andrey-redko\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MongoDB Installation - How to install MongoDB - Java Code Geeks","description":"This article is part of our Academy Course titled MongoDB \u2013 A Scalable NoSQL DB. In this course, you will get introduced to MongoDB. You will learn how to","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html","og_locale":"en_US","og_type":"article","og_title":"MongoDB Installation - How to install MongoDB - Java Code Geeks","og_description":"This article is part of our Academy Course titled MongoDB \u2013 A Scalable NoSQL DB. In this course, you will get introduced to MongoDB. You will learn how to","og_url":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2015-09-23T18:11:48+00:00","article_modified_time":"2023-12-06T13:02:34+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg","type":"image\/jpeg"}],"author":"Andrey Redko","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Andrey Redko","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html"},"author":{"name":"Andrey Redko","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/771a6504862edc45322776832cbce413"},"headline":"MongoDB Installation &#8211; How to install MongoDB","datePublished":"2015-09-23T18:11:48+00:00","dateModified":"2023-12-06T13:02:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html"},"wordCount":2538,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg","keywords":["MongoDB"],"articleSection":["Software Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html","url":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html","name":"MongoDB Installation - How to install MongoDB - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg","datePublished":"2015-09-23T18:11:48+00:00","dateModified":"2023-12-06T13:02:34+00:00","description":"This article is part of our Academy Course titled MongoDB \u2013 A Scalable NoSQL DB. In this course, you will get introduced to MongoDB. You will learn how to","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/mongodb-installation-how-to-install-mongodb.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Software Development","item":"https:\/\/www.javacodegeeks.com\/category\/software-development"},{"@type":"ListItem","position":3,"name":"MongoDB Installation &#8211; How to install MongoDB"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/771a6504862edc45322776832cbce413","name":"Andrey Redko","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/16419ce8394173028eddaeb992859862bab50cfcf74589fa9bb9a3dd8bb27518?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/16419ce8394173028eddaeb992859862bab50cfcf74589fa9bb9a3dd8bb27518?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/16419ce8394173028eddaeb992859862bab50cfcf74589fa9bb9a3dd8bb27518?s=96&d=mm&r=g","caption":"Andrey Redko"},"description":"Andriy is a well-grounded software developer with more then 12 years of practical experience using Java\/EE, C#\/.NET, C++, Groovy, Ruby, functional programming (Scala), databases (MySQL, PostgreSQL, Oracle) and NoSQL solutions (MongoDB, Redis).","sameAs":["http:\/\/aredko.blogspot.com\/","http:\/\/ca.linkedin.com\/in\/aredko"],"url":"https:\/\/www.javacodegeeks.com\/author\/andrey-redko"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/44166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/141"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=44166"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/44166\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/187"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=44166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=44166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=44166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}