{"id":6781,"date":"2017-06-20T12:19:11","date_gmt":"2017-06-20T04:19:11","guid":{"rendered":"http:\/\/rmohan.com\/?p=6781"},"modified":"2017-06-20T12:19:11","modified_gmt":"2017-06-20T04:19:11","slug":"installs-mongodb-based-on-centos-6-5","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6781","title":{"rendered":"Installs MongoDB based on CentOS 6.5"},"content":{"rendered":"<p><strong>Installs MongoDB based on CentOS 6.5 <\/strong><\/p>\n<p>1. Add the MongoDB installation source<\/p>\n<p>vim \/etc\/yum.repos.d\/mongodb-enterprise.repo<\/p>\n<p>Write the following configuration items to the file<\/p>\n<p>[Mongodb-enterprise]<br \/>\nname = MongoDB Enterprise Repository<br \/>\nbaseurl = https:\/\/repo.mongodb.com\/yum\/redhat\/$releasever\/mongodb-enterprise\/stable\/$basearch\/gpgcheck = 0<br \/>\nenabled = 1<\/p>\n<p>2. Install MongoDB with yum<\/p>\n<p>yum install mongodb-enterprise<\/p>\n<p>3. Set the MongoDB process to boot<br \/>\n   chkconfig mongod on<\/p>\n<p>Detailed information:<br \/>\n1. Install mongodb-enterprise, will install the following packages<br \/>\nmongodb-enterprise-server, including Mongod process, configuration files and initialization scripts;<br \/>\nmongodb-enterprise-mongos, including mongos process;<br \/>\nmongodb-enterprise-shell, including mongo shell process;<br \/>\nMongoDB-Enterprise-tools, including mongoimport bsondump, mongodump, mongoexport, mongofiles , mongoimport, mongooplog, mongoperf, mongorestore, mongostat, and mongotop tools;<br \/>\nAfter 2.yun MongoDB configuration file is \/etc\/mongodb, initialization script \/etc\/rc.d\/init.d\/mongod; <\/p>\n<p>3. Install other versions of MongoDB, such as installing version 2.6.1<br \/>\nyum install mongodb-enterprise-2.6.1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installs MongoDB based on CentOS 6.5 <\/p>\n<p>1. Add the MongoDB installation source<\/p>\n<p>vim \/etc\/yum.repos.d\/mongodb-enterprise.repo<\/p>\n<p>Write the following configuration items to the file<\/p>\n<p>[Mongodb-enterprise] name = MongoDB Enterprise Repository baseurl = https:\/\/repo.mongodb.com\/yum\/redhat\/$releasever\/mongodb-enterprise\/stable\/$basearch\/gpgcheck = 0 enabled = 1<\/p>\n<p>2. Install MongoDB with yum<\/p>\n<p>yum install mongodb-enterprise<\/p>\n<p>3. Set the MongoDB process to boot chkconfig mongod on<\/p>\n<p> [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[87],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6781"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6781"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6781\/revisions"}],"predecessor-version":[{"id":6782,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6781\/revisions\/6782"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}