{"id":15586,"date":"2020-06-03T20:05:17","date_gmt":"2020-06-03T20:05:17","guid":{"rendered":"https:\/\/dbtut.com\/?p=15586"},"modified":"2020-06-03T20:42:17","modified_gmt":"2020-06-03T20:42:17","slug":"how-to-install-mongodb-on-centos-8","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/","title":{"rendered":"How To Install MongoDB on Centos 8"},"content":{"rendered":"<p>MongoDB is an open source and document-based NoSQL database designed to efficiently process large amounts of data. Stores data as Binary JSON documents (BSON). MongoDB provides ACID support in 4.0 and later versions.<\/p>\n<p>In order to achieve high performance in MongoDB, some features commonly found in RDBMS systems are not available in MongoDB. MongoDB does not have table, row and column concepts. It has a dynamic schema structure. So documents can have different schemes, which means that the scheme can change as the application evolves.<\/p>\n<p>A single MongoDB instance can host multiple databases. Each database is a collection set. Collections are similar to the concept of tables in relational databases; however, these are schematic. There can be more than one document in a collection. We can think of the document as a row in relational databases.<\/p>\n<p id=\"YMpjilY\"><img loading=\"lazy\" decoding=\"async\" width=\"854\" height=\"266\" class=\"size-full wp-image-15587  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/img_5ed7f6e61dd49.png\" alt=\"\" \/><\/p>\n<p>We will install MongoDB on CentOS 8 server.<\/p>\n<h3>Install MongoDB on Centos 8<\/h3>\n<p>For the installation, we create the &#8220;\/etc\/yum.repos.d\/mongodb-org-4.2.repo&#8221; repo file with the vim command and add the following lines into the file, save and exit:<\/p>\n<pre class=\"lang:default decode:true \">vim \/etc\/yum.repos.d\/mongodb-org-4.2.repo\n\n[mongodb-org-4.2]\nname=MongoDB Repository\nbaseurl=https:\/\/repo.mongodb.org\/yum\/redhat\/$releasever\/mongodb-org\/4.2\/x86_64\/\ngpgcheck=1\nenabled=1\ngpgkey=https:\/\/www.mongodb.org\/static\/pgp\/server-4.2.asc<\/pre>\n<p>We install the mongodb-org package:<\/p>\n<pre class=\"lang:default decode:true\">sudo dnf install mongodb-org<\/pre>\n<p id=\"QDZtANv\"><img loading=\"lazy\" decoding=\"async\" width=\"754\" height=\"357\" class=\"size-full wp-image-15588  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/img_5ed7f7ab9ccdf.png\" alt=\"\" \/><\/p>\n<p>The mongodb-org package we have installed consists of &#8220;mongos, server, shell and tools&#8221; packages.<\/p>\n<p><strong>mongodb-org-server:<\/strong> It includes the Mongod program, and the init command.<\/p>\n<p><strong>mongodb-org-mongos: <\/strong>It includes the Mongos program.<\/p>\n<p><strong>mongodb-org-shell: <\/strong>Includes Mongo shell program.<\/p>\n<p><strong>mongodb-org-tools: <\/strong>Contains mongo commands; mongodump, mongorestore, mongoexport, mongoimport, mongostat, mongotop etc.<\/p>\n<p>We start the mongod(MongoDB service), and enable it to start automatically when the server is started:<\/p>\n<pre class=\"lang:default decode:true \">systemctl start mongod\nsystemctl enable mongod<\/pre>\n<h4 class=\"LC20lb DKV0Md\">Is mongodb running?<\/h4>\n<p>We can check Mongod service status as follows:<\/p>\n<pre class=\"lang:default decode:true \">systemctl status mongod<\/pre>\n<p id=\"TaHlVvv\"><img loading=\"lazy\" decoding=\"async\" width=\"757\" height=\"362\" class=\"size-full wp-image-15589  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/img_5ed7f97778e1e.png\" alt=\"\" \/><\/p>\n<p>The MongoDB configuration file is &#8220;\/etc\/mongod.conf&#8221; by default. It runs on port 27017 at 127.0.0.1 with default settings.<\/p>\n<p>With the mongo command, we connect to the database with default settings:<\/p>\n<pre class=\"lang:default decode:true \">mongo<\/pre>\n<p>With the <code>show dbs<\/code> command, we can view the existing databases:<\/p>\n<p id=\"DFDuHpg\"><img loading=\"lazy\" decoding=\"async\" width=\"765\" height=\"587\" class=\"size-full wp-image-15590  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/img_5ed7fa830d130.png\" alt=\"\" \/><\/p>\n<p>MongoDB has admin, local and config databases by default.<\/p>\n<h4>admin database in MongoDB<\/h4>\n<p>The root database for administrative operations. If a user is added to the admin database, the user automatically inherits the permissions of all databases. There are also some service-wide commands that can only be run from the admin database, such as listing all databases or shutting down the service.<\/p>\n<h4>local database in MongoDB<\/h4>\n<p>Contains information of MongoDB service in replication processes. It is also not copied during replication processes.<\/p>\n<h4>config\u00a0 database in MongoDB<\/h4>\n<p>Stores Sharded cluster information.<\/p>\n<p>By default, the authentication setting is set to disable when MongoDB service is installed. This is the reason for the warning you see in the command output below.<br \/>\n&#8220;WARNING: Access control is not enabled for the database.&#8221;<\/p>\n<p>We will not receive this warning when we create an authorized user in the database, enable the authentication setting in the default configuration file &#8220;\/etc\/mongod.conf&#8221; and restart the service.<\/p>\n<p>MongoDB recommends disabling Transparent HugePages for better performance. This setting is enabled by default on most Linux distributions. This is the reason for the warning you see in the command output below. &#8220;WARNING: \/ sys \/ kernel \/ mm \/ transparent_hugepage \/ enabled is &#8216;always&#8217;.&#8221;<\/p>\n<p>After creating users in the database, we will change this setting as recommended.<\/p>\n<h3>Create User in MongoDB and MongoDB Database Operations<\/h3>\n<p>We connect to the admin database with the following command and create an authorized user in the entire cluster:<\/p>\n<h4>Create admin user in MongoDB:<\/h4>\n<pre class=\"lang:default decode:true \">use admin\ndb.createUser(\n  {\n    user: \"zaydemir\",\n    pwd: \"mypassword\",\n    roles: [ { role: \"userAdminAnyDatabase\", db: \"admin\" }, \"readWriteAnyDatabase\" ]\n  }\n)<\/pre>\n<p>Example command output is as follows:<\/p>\n<p id=\"plwRuSy\"><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"340\" class=\"size-full wp-image-15591  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/img_5ed7fda6aca19.png\" alt=\"\" \/><\/p>\n<p>We exit the database with the exit command and add the following line to the file &#8220;\/etc\/mongod.conf&#8221;:<\/p>\n<pre class=\"lang:default decode:true \">security:\n  authorization: enabled<\/pre>\n<p>The final version of the \/etc\/mongod.conf file is as follows:<\/p>\n<pre class=\"lang:default decode:true \">cat \/etc\/mongod.conf\n\nsystemLog:\n  destination: file\n  logAppend: true\n  path: \/var\/log\/mongodb\/mongod.log\nstorage:\n  dbPath: \/var\/lib\/mongo\n  journal:\n    enabled: true\n# how the process runs\nprocessManagement:\n  fork: true  # fork and run in background\n  pidFilePath: \/var\/run\/mongodb\/mongod.pid  # location of pidfile\n  timeZoneInfo: \/usr\/share\/zoneinfo\n# network interfaces\nnet:\n  port: 27017\n  bindIp: 127.0.0.1  \nsecurity:\n  authorization: enabled<\/pre>\n<p>We are restarting the Mongod service:<\/p>\n<h4>Restart Mongod Service:<\/h4>\n<pre class=\"lang:default decode:true \">systemctl restart mongod<\/pre>\n<p>When we connect to the database with the following command, we will no longer see the authentication warning:<\/p>\n<pre class=\"lang:default decode:true \">mongo --port 27017 --host 127.0.0.1  --authenticationDatabase \"admin\" -u zaydemir -p 'mypassword'<\/pre>\n<p>Let&#8217;s create a new database and collection and add records with the following commands:<\/p>\n<p id=\"JbpwXIm\"><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"408\" class=\"size-full wp-image-15592  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/img_5ed7ff89bdd08.png\" alt=\"\" \/><\/p>\n<p><code>use customer<\/code><br \/>\nIt connects to a database named customer, it creates if there is no database with that name. If we leave the database without creating an object, the database will be deleted.<\/p>\n<p><code>db<\/code><br \/>\nIt shows the database to which we are connected.<\/p>\n<p><code>db.people.insert ()<\/code><br \/>\nIn the customer database, it adds a record to the collection named people, and creates it if there is no collection.<\/p>\n<p><code>db.people.find ()<\/code><br \/>\nReturns all records in the people collection.<\/p>\n<p><code>show dbs<\/code><br \/>\nReturns the current database list.<\/p>\n<p><code>show collections<\/code><br \/>\nReturns the list of collections in the database we connect to.<\/p>\n<h3>Disable Transparent HugePages<\/h3>\n<p>Transparent HugePages (THP) is a memory management system that is enabled by default in most Linux operating systems. In order for MongoDB to run better on Linux, THP must be disabled.<\/p>\n<p>Let&#8217;s create a service file that will disable THP before the mongodb service starts every time the server is started.<\/p>\n<pre class=\"lang:default decode:true \">vim \/etc\/systemd\/system\/disable-transparent-huge-pages.service\n\n\n[Unit]\nDescription=Disable Transparent Huge Pages (THP)\nDefaultDependencies=no\nAfter=sysinit.target local-fs.target\nBefore=mongod.service\n\n\n[Service]\nType=oneshot\nExecStart=\/bin\/sh -c 'echo never | tee \/sys\/kernel\/mm\/transparent_hugepage\/enabled &gt; \/dev\/null'\n\n\n[Install]\nWantedBy=basic.target<\/pre>\n<p>Reload systemd:<\/p>\n<pre class=\"lang:default decode:true \">systemctl daemon-reload<\/pre>\n<p>We start the service and enable it to be enable every time the server is started.<\/p>\n<pre class=\"lang:default decode:true \">systemctl start disable-transparent-huge-pages\nsystemctl enable disable-transparent-huge-pages<\/pre>\n<h3>Check Transparent HugePages<\/h3>\n<p>We can see that the THP setting is [never] with the following command:<\/p>\n<pre class=\"lang:default decode:true \">cat \/sys\/kernel\/mm\/transparent_hugepage\/enabled<\/pre>\n<p>Sample output is as follows:<\/p>\n<p id=\"vfluPFM\"><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"54\" class=\"size-full wp-image-15593  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/img_5ed801d194880.png\" alt=\"\" \/><\/p>\n<p>There are other ways to disable Transparent HugePages. You can find it on the MongoDB page.<\/p>\n<p>In this article, I talked about basic MongoDB installation. You can find more detailed information in the article below.<\/p>\n<p>&#8220;<a href=\"https:\/\/dbtut.com\/index.php\/2019\/11\/08\/deploy-sharded-cluster-with-keyfile-access-control-on-red-hat-enterprise-linux-or-centos-linux\/\" target=\"_blank\" rel=\"noopener noreferrer\">How To Install Mongodb Sharded Cluster with Keyfile Access Control on Red Hat or CentOS<\/a>&#8220;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_15586\" class=\"pvc_stats all  \" data-element-id=\"15586\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>MongoDB is an open source and document-based NoSQL database designed to efficiently process large amounts of data. Stores data as Binary JSON documents (BSON). MongoDB provides ACID support in 4.0 and later versions. In order to achieve high performance in MongoDB, some features commonly found in RDBMS systems are not available in MongoDB. MongoDB does &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_15586\" class=\"pvc_stats all  \" data-element-id=\"15586\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":477,"featured_media":15595,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1306],"tags":[9622,9621,9623],"class_list":["post-15586","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-mongodb","tag-check-mongo-status","tag-how-to-install-mongodb-on-centos-8","tag-is-mongodb-running"],"aioseo_notices":[],"a3_pvc":{"activated":true,"total_views":303,"today_views":0},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Install MongoDB on Centos 8 - Database Tutorials<\/title>\n<meta name=\"description\" content=\"How To Install MongoDB on Centos 8\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/\" \/>\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 Centos 8 - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"How To Install MongoDB on Centos 8\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-03T20:05:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-03T20:42:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/Ads\u0131z-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"868\" \/>\n\t<meta property=\"og:image:height\" content=\"473\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Zekiye AYDEM\u0130R\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Zekiye AYDEM\u0130R\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/\"},\"author\":{\"name\":\"Zekiye AYDEM\u0130R\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/44676b832bdd5cfa774e985b6d85cd3b\"},\"headline\":\"How To Install MongoDB on Centos 8\",\"datePublished\":\"2020-06-03T20:05:17+00:00\",\"dateModified\":\"2020-06-03T20:42:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/\"},\"wordCount\":848,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/Ads\u0131z-1.png\",\"keywords\":[\"check mongo status\",\"how to install mongodb on centos 8\",\"Is mongodb running?\"],\"articleSection\":[\"MongoDB\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/\",\"name\":\"How To Install MongoDB on Centos 8 - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/Ads\u0131z-1.png\",\"datePublished\":\"2020-06-03T20:05:17+00:00\",\"dateModified\":\"2020-06-03T20:42:17+00:00\",\"description\":\"How To Install MongoDB on Centos 8\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/Ads\u0131z-1.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/Ads\u0131z-1.png\",\"width\":868,\"height\":473},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install MongoDB on Centos 8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/44676b832bdd5cfa774e985b6d85cd3b\",\"name\":\"Zekiye AYDEM\u0130R\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eac70389d03a5a61b22bd277efdc0bae561e8ee31279a0c187c57f9b16e15620?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eac70389d03a5a61b22bd277efdc0bae561e8ee31279a0c187c57f9b16e15620?s=96&d=mm&r=g\",\"caption\":\"Zekiye AYDEM\u0130R\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/zekiyeaydemir\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install MongoDB on Centos 8 - Database Tutorials","description":"How To Install MongoDB on Centos 8","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:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/","og_locale":"en_US","og_type":"article","og_title":"How To Install MongoDB on Centos 8 - Database Tutorials","og_description":"How To Install MongoDB on Centos 8","og_url":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/","og_site_name":"Database Tutorials","article_published_time":"2020-06-03T20:05:17+00:00","article_modified_time":"2020-06-03T20:42:17+00:00","og_image":[{"width":868,"height":473,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/Ads\u0131z-1.png","type":"image\/png"}],"author":"Zekiye AYDEM\u0130R","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Zekiye AYDEM\u0130R","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/"},"author":{"name":"Zekiye AYDEM\u0130R","@id":"https:\/\/dbtut.com\/#\/schema\/person\/44676b832bdd5cfa774e985b6d85cd3b"},"headline":"How To Install MongoDB on Centos 8","datePublished":"2020-06-03T20:05:17+00:00","dateModified":"2020-06-03T20:42:17+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/"},"wordCount":848,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/Ads\u0131z-1.png","keywords":["check mongo status","how to install mongodb on centos 8","Is mongodb running?"],"articleSection":["MongoDB"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/","url":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/","name":"How To Install MongoDB on Centos 8 - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/Ads\u0131z-1.png","datePublished":"2020-06-03T20:05:17+00:00","dateModified":"2020-06-03T20:42:17+00:00","description":"How To Install MongoDB on Centos 8","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/Ads\u0131z-1.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/06\/Ads\u0131z-1.png","width":868,"height":473},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2020\/06\/03\/how-to-install-mongodb-on-centos-8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"How To Install MongoDB on Centos 8"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/44676b832bdd5cfa774e985b6d85cd3b","name":"Zekiye AYDEM\u0130R","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eac70389d03a5a61b22bd277efdc0bae561e8ee31279a0c187c57f9b16e15620?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eac70389d03a5a61b22bd277efdc0bae561e8ee31279a0c187c57f9b16e15620?s=96&d=mm&r=g","caption":"Zekiye AYDEM\u0130R"},"url":"https:\/\/dbtut.com\/index.php\/author\/zekiyeaydemir\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/15586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/477"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=15586"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/15586\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/15595"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=15586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=15586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=15586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}