{"id":21550,"date":"2013-05-11T14:33:14","date_gmt":"2013-05-11T09:03:14","guid":{"rendered":"http:\/\/vskills.in\/certification\/tutorial\/?p=21550"},"modified":"2024-04-12T14:16:29","modified_gmt":"2024-04-12T08:46:29","slug":"installation-steps-of-mongodb","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/","title":{"rendered":"Installation steps of MongoDB"},"content":{"rendered":"<h4><strong>Installation steps of MongoDB<\/strong><\/h4>\n<p>Installation on various operating systems is discussed below.<\/p>\n<p><strong>Installing on Linux<\/strong><\/p>\n<p>For easy installation, MongoDB provides packages for popular Linux distributions as rpm packages for Red Hat Enterprise, CentOS, Fedora and related Linux systems and deb package for Ubuntu Linux systems.<\/p>\n<p><strong>.deb or .apt based installation<\/strong> \u2013 It involves configuring the Package Management System (APT) The Debian package management tools (i.e. dpkgandapt) ensure package consistency and authenticity by requiring that distributors sign packages with GPG keys.<\/p>\n<p>Import MongoDB PGP key. Issue the following command to add the MongoDB public GPG Key to the system key ring.<\/p>\n<p>sudo apt-key adv &#8211;keyserver keyserver.ubuntu.com &#8211;recv 7F0CEB10<\/p>\n<p>Create a sources.list file for MongoDB. Create a\/etc\/apt\/sources.list.d\/mongodb.list file<\/p>\n<p>echo &#8216;deb http-\/\/downloads-distro.mongodb.org\/repo\/debian-sysvinit dist 10gen&#8217; | sudo tee \/etc\/apt\/so<\/p>\n<p>Reload local package database. Issue the following command to reload the local package database<\/p>\n<p>sudo apt-get update<\/p>\n<p>Install Packages Issue the following command to install the latest stable version of MongoDB<\/p>\n<p>sudo apt-get install mongodb-10gen<\/p>\n<p>When this command completes, we have successfully installed MongoDB!<\/p>\n<p>We can use themongodb-10genpackage to install previous versions of MongoDB. To install a specific release, append the version number to the package name, as in the following example<\/p>\n<p>apt-get install mongodb-10gen=2.2.3<\/p>\n<p>This will install the 2.2.3 release of MongoDB.<\/p>\n<p><strong>.rpm based installation<\/strong> \u2013 It involves the following steps<\/p>\n<ul>\n<li>Download the Latest Release &#8211; In a system shell, download the latest release, as<\/li>\n<\/ul>\n<p>curl -O http:\/\/downloads.mongodb.org\/linux\/mongodb-linux-i686-2.4.9.tgz<\/p>\n<ul>\n<li>User may optionally specify a different version to download.<\/li>\n<li>Extract MongoDB from Archive &#8211; Extract the files from the downloaded archive.<\/li>\n<\/ul>\n<p>tar -zxvf mongodb-linux-i686-2.4.9.tgz<\/p>\n<ul>\n<li>Copy MongoDB to Target Directory &#8211; Copy the extracted folder into another location, such as mongodb.<\/li>\n<\/ul>\n<p>mkdir -p mongodb<\/p>\n<p>cp -R -n mongodb-linux-i686-2.4.9\/ mongodb<\/p>\n<ul>\n<li>Configure Search Path &#8211; To ensure that the downloaded binaries are in yourPATH, User can modify yourPATH and\/or create symbolic links to the MongoDB binaries in your \/usr\/local\/bindirectory (\/usr\/local\/binis already in yourPATH). The MongoDB binaries are in the bin\/directory within the archive.<\/li>\n<li>Run MongoDB<\/li>\n<\/ul>\n<p><strong>Install on OS X<\/strong><\/p>\n<p>Starting in version 2.4, MongoDB only supports OS X versions 10.6 (Snow Leopard) on Intel x86-64 and later. MongoDB is available through the popular OS X package manager Homebrew or through the MongoDB Download site.<\/p>\n<p>Homebrew installs binary packages based on published \u201cformulae\u201d. The following commands will update brew to the latest packages and install MongoDB. In a terminal shell, use the following sequence of commands to update \u2018\u2018brew\u2019\u2019 to the latest packages and install MongoDB<\/p>\n<p>brew update<\/p>\n<p>brew install mongodb<\/p>\n<p>Use the following command to build MongoDB with SSL support<\/p>\n<p>brew install mongodb &#8211;with-openssl<\/p>\n<p>The steps for manual installation are as<\/p>\n<p>Download the Latest Release In a system shell, download the latest release for 64-bit OS X.<\/p>\n<p>curl -O http:\/\/downloads.mongodb.org\/osx\/mongodb-osx-x86_64-2.4.9.tgz<\/p>\n<p>Extract MongoDB From Archive Extract the files from the downloaded archive.<\/p>\n<p>tar -zxvf mongodb-osx-x86_64-2.4.9.tgz<\/p>\n<p>Copy the extracted folder into another location, such as mongodb.<\/p>\n<p>mkdir -p mongodb<\/p>\n<p>cp -R -n mongodb-osx-x86_64-2.4.9\/ mongodb<\/p>\n<p>To ensure that the downloaded binaries are in yourPATH, modify yourPATHand\/or create symbolic links to the MongoDB binaries in your \/usr\/local\/bindirectory (\/usr\/local\/binis already in yourPATH). Find the MongoDB binaries in thebin\/directory within the archive.<\/p>\n<p>Run MongoDB<\/p>\n<p><strong>Installing on Windows<\/strong><\/p>\n<p>Installing MongoDB on Windows involves the following steps as<\/p>\n<ul>\n<li>Download the latest production release of MongoDB from the MongoDB downloads<\/li>\n<li>Extract the downloaded archive.<\/li>\n<li>In Windows Explorer, find the MongoDB download file, typically in the default downloads directory.<\/li>\n<li>Extract the archive to C:\\by right clicking on the archive and selecting Extract All and browsing to C:\\.<\/li>\n<li>Move the MongoDB directory to another location. For example, to move the directory to C:\\mongodb directory as<\/li>\n<li>Go Start Menu&gt;All Programs&gt;Accessories.<\/li>\n<li>Right click Command Prompt, and select Run as Administrator from the popup menu.<\/li>\n<li>In the Command Prompt, issue the following commands<\/li>\n<\/ul>\n<p>cd \\<\/p>\n<p>move C:\\mongodb-win32-* C:\\mongodb<\/p>\n<ul>\n<li>Run MongoDB<\/li>\n<\/ul>\n<div class=\"apply\">\n<h3>Apply for MongoDB Certification Now!!<\/h3>\n<p><a href=\"https:\/\/www.vskills.in\/certification\/databases\/mongodb-server-administrator\" target=\"_blank\" rel=\"noopener\">https:\/\/www.vskills.in\/certification\/databases\/mongodb-server-administrator<\/a><\/p>\n<h4><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/certified-mongodb-professional\/\" target=\"_blank\" rel=\"noopener\"><strong>Back to Tutorial<\/strong><\/a><\/h4>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Installation steps of MongoDB Installation on various operating systems is discussed below. Installing on Linux For easy installation, MongoDB provides packages for popular Linux distributions as rpm packages for Red Hat Enterprise, CentOS, Fedora and related Linux systems and deb package for Ubuntu Linux systems. .deb or .apt based installation \u2013 It involves configuring the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[73],"tags":[],"class_list":["post-21550","page","type-page","status-publish","hentry","category-mongodb"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Installation steps of MongoDB tutorials<\/title>\n<meta name=\"description\" content=\"Installation steps of MongoDB tutorials\" \/>\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.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installation steps of MongoDB tutorials\" \/>\n<meta property=\"og:description\" content=\"Installation steps of MongoDB tutorials\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:46:29+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/\",\"name\":\"Installation steps of MongoDB tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"datePublished\":\"2013-05-11T09:03:14+00:00\",\"dateModified\":\"2024-04-12T08:46:29+00:00\",\"description\":\"Installation steps of MongoDB tutorials\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installation steps of MongoDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installation steps of MongoDB tutorials","description":"Installation steps of MongoDB tutorials","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.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/","og_locale":"en_US","og_type":"article","og_title":"Installation steps of MongoDB tutorials","og_description":"Installation steps of MongoDB tutorials","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:46:29+00:00","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/","name":"Installation steps of MongoDB tutorials","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"datePublished":"2013-05-11T09:03:14+00:00","dateModified":"2024-04-12T08:46:29+00:00","description":"Installation steps of MongoDB tutorials","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/installation-steps-of-mongodb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Installation steps of MongoDB"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/21550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=21550"}],"version-history":[{"count":9,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/21550\/revisions"}],"predecessor-version":[{"id":131945,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/21550\/revisions\/131945"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=21550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=21550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=21550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}