{"id":3867,"date":"2024-11-18T15:12:23","date_gmt":"2024-11-18T09:42:23","guid":{"rendered":"https:\/\/www.hostzop.com\/knowledge\/?post_type=manual_kb&#038;p=3867"},"modified":"2024-11-20T15:54:23","modified_gmt":"2024-11-20T10:24:23","slug":"how-to-install-mongodb-on-alma-linux","status":"publish","type":"manual_kb","link":"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/","title":{"rendered":"How to install MongoDB on Alma Linux"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3867\" class=\"elementor elementor-3867\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-25d8e08 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"25d8e08\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cdf2509\" data-id=\"cdf2509\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-54df8c3 elementor-widget elementor-widget-text-editor\" data-id=\"54df8c3\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.15.0 - 20-08-2023 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<h4>Introduction:<\/h4><p>MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a NoSQL database product, MongoDB utilizes JSON-like documents with optional schemas.To install MongoDB on AlmaLinux, you can follow the steps below. MongoDB is available via the official MongoDB repository, which provides the latest stable versions.<\/p><h4>Step 1: Install Required Dependencies<\/h4><p>First, update your system and install any required dependencies:<br \/>#sudo dnf update -y<\/p><h4>Step 2: Add the MongoDB Repository<\/h4><p>MongoDB provides its own repository, so we need to add that to your system to get the latest version. We&#8217;ll use the MongoDB 6.x repository, but you can modify the version if needed.<\/p><ul><li>Create a .repo file for MongoDB:<br \/>#sudo nano \/etc\/yum.repos.d\/mongodb-org-6.0.repo<\/li><li>Add the following content to the mongodb-org-6.0.repo file:<br \/>[mongodb-org-6.0]<br \/>name=MongoDB Repository<br \/>baseurl=https:\/\/repo.mongodb.org\/yum\/amazon\/2\/mongodb-org\/6.0\/x86_64\/<br \/>gpgcheck=1<br \/>enabled=1<br \/>gpgkey=https:\/\/www.mongodb.org\/static\/pgp\/server-6.0.asc<\/li><\/ul><h4>Step 3:Install MongoDB<\/h4><p>Once the repository is added, you can install MongoDB.<br \/>#sudo dnf install -y mongodb-org<\/p><p>This will install the following MongoDB packages:<br \/>mongodb-org-server (the MongoDB server)<br \/>mongodb-org-mongos (MongoDB router)<br \/>mongodb-org-shell (the MongoDB shell)<br \/>mongodb-org-tools (tools for MongoDB, including mongodump, mongoimport, etc.)<\/p><h4>Step 4:Start and Enable MongoDB Service<\/h4><p>After MongoDB is installed, you need to start the service and enable it to start on boot.<\/p><ul><li>Start and Enable MongoDB Service<br \/>#sudo systemctl start mongod<\/li><li>Enable MongoDB to start on boot:<br \/>#sudo systemctl enable mongod<\/li><li>Verify MongoDB is running:<br \/>Check the status of MongoDB to ensure it&#8217;s running correctly:<br \/>#sudo systemctl status mongod<\/li><\/ul><p>You should see output that indicates MongoDB is active and running.<br \/><strong>Active: active (running) since Tue 2024-10-17 10:00:00 UTC; 5min ago<\/strong><\/p><h4>Conclusion<\/h4><p>You have successfully installed MongoDB on your AlmaLinux system. You can now begin using MongoDB for your applications. To ensure your MongoDB instance is secure, it&#8217;s recommended to enable authentication and configure proper firewalls.<\/p><ul><li>Access MongoDB via: mongo<\/li><li>Enable Authentication for security in production environments.<\/li><li>Secure your MongoDB by configuring proper firewall rules and using SSL for encrypted communication.<\/li><\/ul>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[29],"manual_kb_tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install MongoDB on Alma Linux - Hostzop - Web Hosting Services<\/title>\n<meta name=\"description\" content=\"MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a NoSQL database product, MongoDB utilizes JSON-like documents with optional schemas.\" \/>\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.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install MongoDB on Alma Linux - Hostzop - Web Hosting Services\" \/>\n<meta property=\"og:description\" content=\"MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a NoSQL database product, MongoDB utilizes JSON-like documents with optional schemas.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Hostzop - Web Hosting Services\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hostzop\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-20T10:24:23+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@hostzop\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/\",\"url\":\"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/\",\"name\":\"How to install MongoDB on Alma Linux - Hostzop - Web Hosting Services\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostzop.com\/knowledge\/#website\"},\"datePublished\":\"2024-11-18T09:42:23+00:00\",\"dateModified\":\"2024-11-20T10:24:23+00:00\",\"description\":\"MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a NoSQL database product, MongoDB utilizes JSON-like documents with optional schemas.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.hostzop.com\/knowledge\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install MongoDB on Alma Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostzop.com\/knowledge\/#website\",\"url\":\"https:\/\/www.hostzop.com\/knowledge\/\",\"name\":\"hostzop.com\/knowledge\/\",\"description\":\"Just another WordPress site\",\"publisher\":{\"@id\":\"https:\/\/www.hostzop.com\/knowledge\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostzop.com\/knowledge\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.hostzop.com\/knowledge\/#organization\",\"name\":\"Hostzop knowledge\",\"url\":\"https:\/\/www.hostzop.com\/knowledge\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostzop.com\/knowledge\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hostzop.com\/knowledge\/wp-content\/uploads\/2023\/02\/logo.png\",\"contentUrl\":\"https:\/\/hostzop.com\/knowledge\/wp-content\/uploads\/2023\/02\/logo.png\",\"width\":233,\"height\":103,\"caption\":\"Hostzop knowledge\"},\"image\":{\"@id\":\"https:\/\/www.hostzop.com\/knowledge\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/hostzop\/\",\"https:\/\/twitter.com\/hostzop\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install MongoDB on Alma Linux - Hostzop - Web Hosting Services","description":"MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a NoSQL database product, MongoDB utilizes JSON-like documents with optional schemas.","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.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to install MongoDB on Alma Linux - Hostzop - Web Hosting Services","og_description":"MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a NoSQL database product, MongoDB utilizes JSON-like documents with optional schemas.","og_url":"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/","og_site_name":"Hostzop - Web Hosting Services","article_publisher":"https:\/\/www.facebook.com\/hostzop\/","article_modified_time":"2024-11-20T10:24:23+00:00","twitter_card":"summary_large_image","twitter_site":"@hostzop","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/","url":"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/","name":"How to install MongoDB on Alma Linux - Hostzop - Web Hosting Services","isPartOf":{"@id":"https:\/\/www.hostzop.com\/knowledge\/#website"},"datePublished":"2024-11-18T09:42:23+00:00","dateModified":"2024-11-20T10:24:23+00:00","description":"MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a NoSQL database product, MongoDB utilizes JSON-like documents with optional schemas.","breadcrumb":{"@id":"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostzop.com\/knowledge\/knowledgebase\/how-to-install-mongodb-on-alma-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hostzop.com\/knowledge\/"},{"@type":"ListItem","position":2,"name":"How to install MongoDB on Alma Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.hostzop.com\/knowledge\/#website","url":"https:\/\/www.hostzop.com\/knowledge\/","name":"hostzop.com\/knowledge\/","description":"Just another WordPress site","publisher":{"@id":"https:\/\/www.hostzop.com\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostzop.com\/knowledge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hostzop.com\/knowledge\/#organization","name":"Hostzop knowledge","url":"https:\/\/www.hostzop.com\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostzop.com\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/hostzop.com\/knowledge\/wp-content\/uploads\/2023\/02\/logo.png","contentUrl":"https:\/\/hostzop.com\/knowledge\/wp-content\/uploads\/2023\/02\/logo.png","width":233,"height":103,"caption":"Hostzop knowledge"},"image":{"@id":"https:\/\/www.hostzop.com\/knowledge\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hostzop\/","https:\/\/twitter.com\/hostzop"]}]}},"_links":{"self":[{"href":"https:\/\/www.hostzop.com\/knowledge\/wp-json\/wp\/v2\/manual_kb\/3867"}],"collection":[{"href":"https:\/\/www.hostzop.com\/knowledge\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/www.hostzop.com\/knowledge\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostzop.com\/knowledge\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostzop.com\/knowledge\/wp-json\/wp\/v2\/comments?post=3867"}],"version-history":[{"count":6,"href":"https:\/\/www.hostzop.com\/knowledge\/wp-json\/wp\/v2\/manual_kb\/3867\/revisions"}],"predecessor-version":[{"id":3974,"href":"https:\/\/www.hostzop.com\/knowledge\/wp-json\/wp\/v2\/manual_kb\/3867\/revisions\/3974"}],"wp:attachment":[{"href":"https:\/\/www.hostzop.com\/knowledge\/wp-json\/wp\/v2\/media?parent=3867"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/www.hostzop.com\/knowledge\/wp-json\/wp\/v2\/manualknowledgebasecat?post=3867"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/www.hostzop.com\/knowledge\/wp-json\/wp\/v2\/manual_kb_tag?post=3867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}