{"id":1481,"date":"2021-11-22T11:32:00","date_gmt":"2021-11-22T08:02:00","guid":{"rendered":"https:\/\/mellicloud.com\/?p=1481"},"modified":"2021-12-27T12:35:23","modified_gmt":"2021-12-27T09:05:23","slug":"install-mongodb-in-centos7","status":"publish","type":"post","link":"https:\/\/mellicloud.com\/en\/tutorial\/install-mongodb-in-centos7\/1481\/","title":{"rendered":"Guide for installing and activating Mongodb in Centos7 + on Iranian servers"},"content":{"rendered":"\n<p class=\"has-text-align-center has-background wp-block-paragraph\" style=\"background-color:#cbe8fa\"><em>\u062f\u0631 <strong>\u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0627\u06cc\u0631\u0627\u0646<\/strong> \u0646\u06a9\u062a\u0647 \u0645\u0647\u0645 \u06a9\u0647 \u062f\u0631 \u0627\u0646\u062a\u0647\u0627\u06cc \u0645\u0637\u0644\u0628 \u06af\u0641\u062a\u0647 \u0634\u062f\u0647 \u0631\u0627 \u062f\u0631 \u0646\u0638\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1-<\/strong> \u0627\u0628\u062a\u062f\u0627 \u0648\u0627\u0631\u062f \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u0644\u06cc\u0646\u0648\u06a9\u0633 CentOS 7 \u062e\u0648\u062f \u0634\u0648\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2- <\/strong>\u0644\u06cc\u0633\u062a Repository \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0646\u0635\u0628 \u0646\u0645\u0627\u0626\u06cc\u062f.<br>(<em>\u0628\u0647 \u062f\u0644\u06cc\u0644 \u0627\u06cc\u0646\u06a9\u0647 \u067e\u06a9\u06cc\u062c MongoDB \u062f\u0631 \u0644\u06cc\u0633\u062a Repository \u067e\u06cc\u0634 \u0641\u0631\u0636 centos 7 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f)<\/em><\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\"> nano  \/etc\/yum.repos.d\/mongodb-org.repo<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u067e\u0633 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0622\u0646 \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">[mongodb-org-4.0]\n\nname=MongoDB Repository\n\nbaseurl=https:\/\/repo.mongodb.org\/yum\/redhat\/$releasever\/mongodb-org\/4.0\/x86_64\/\n\ngpgcheck=1\n\nenabled=1\n\ngpgkey=https:\/\/www.mongodb.org\/static\/pgp\/server-4.0.asc<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u00a03- <\/strong>\u0633\u067e\u0633 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0644\u06cc\u0633\u062a repository \u0644\u06cc\u0646\u0648\u06a9\u0633 \u062e\u0648\u062f \u0631\u0627 \u0686\u06a9 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">yum repolist<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u062f\u0631 \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 \u0628\u0627\u0644\u0627 \u0628\u0627\u06cc\u062f \u0646\u0627\u0645 \u0645\u062e\u0632\u0646\u06cc \u06a9\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u06cc\u062f \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4- <\/strong>\u067e\u0633 \u0627\u0632 \u0627\u0639\u0645\u0627\u0644 \u0645\u0631\u0627\u062d\u0644 \u0628\u0627\u0644\u0627 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 mongoDB \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\"> yum install mongodb-org<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u067e\u06a9\u06cc\u062c \u0634\u0631\u0648\u0639 \u0628\u0647 \u0646\u0635\u0628 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u062d\u062f\u0648\u062f 201 \u0645\u06af\u0627\u0628\u0627\u06cc\u062a \u0631\u0627 \u062f\u0627\u0646\u0644\u0648\u062f \u0648 \u0646\u0635\u0628 \u0645\u06cc\u200c\u0646\u0645\u0627\u06cc\u062f. \u062f\u0642\u062a \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u062f\u0631 \u0628\u06cc\u0646 \u0645\u0631\u0627\u062d\u0644 \u0646\u0635\u0628 \u0627\u0632 \u0634\u0645\u0627 \u062a\u0623\u06cc\u06cc\u062f\u06cc\u0647 \u0646\u0635\u0628 \u0648 \u062f\u0627\u0646\u0644\u0648\u062f \u067e\u0631\u0633\u06cc\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f \u06a9\u0647 Yes \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">systemctl start mongod\n\nsystemctl reload mongod<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0633\u067e\u0633 \u0645\u0646\u062a\u0638\u0631 \u0628\u0645\u0627\u0646\u06cc\u062f \u062a\u0627 \u0646\u0635\u0628 MongoDB \u062a\u0645\u0627\u0645 \u0634\u0648\u062f.<\/p>\n\n\n\n<p class=\"has-background wp-block-paragraph\" style=\"background-color:#c9eaff\">\u0646\u06a9\u062a\u0647 \u0645\u0647\u0645 \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 <em>MongoDB <\/em>\u062f\u0631 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0627\u06cc\u0631\u0627\u0646:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u062f\u0631 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0627\u06cc\u0631\u0627\u0646 \u0628\u0639\u0644\u062a \u062a\u062d\u0631\u06cc\u0645 \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0633\u062a\u0642\u06cc\u0645 \u0628\u0647 \u0622\u062f\u0631\u0633 \u0647\u0627\u06cc mongodb \u0627\u0645\u06a9\u0627\u0646\u067e\u0630\u06cc\u0631 \u0646\u06cc\u0633\u062a\u060c \u0648 \u0631\u0627\u0647 \u062d\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <a rel=\"noreferrer noopener\" href=\"https:\/\/shecan.ir\/\" target=\"_blank\">\u062a\u062d\u0631\u06cc\u0645 \u0634\u06a9\u0646 \u0627\u06cc\u0631\u0627\u0646\u06cc \u0634\u06a9\u0646<\/a> \u0647\u0633\u062a.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0646\u0638\u0648\u0631:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong> 1- <\/strong> DNS \u0633\u0631\u0648\u0631 \u0631\u0648 \u062f\u06cc \u0627\u0646 \u0627\u0633 \u0647\u0627\u06cc \u0634\u06a9\u0646 \u0645\u06cc\u0630\u0627\u0631\u06cc\u0645.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2- <\/strong>\u0633\u067e\u0633 \u062f\u0631 \u0641\u0627\u06cc\u0644 mongodb-org.repo \u0622\u062f\u0631\u0633 \u0647\u0627\u06cc http \u0631\u0627 \u0628\u0647 https \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc \u062f\u0647\u06cc\u0645.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3-<\/strong> \u062f\u0633\u062a\u0648\u0631 \u0646\u0635\u0628 mongodb \u0631\u0627 \u0648\u0627\u0631\u062f \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u0648 \u06a9\u0645\u06cc \u0627\u0646\u062a\u0638\u0627\u0631 \u062a\u0627 \u0646\u0635\u0628 \u06a9\u0627\u0645\u0644!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0645\u0648\u0641\u0642 \u0628\u0627\u0634\u06cc\u062f!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0627\u06cc\u0631\u0627\u0646 \u0646\u06a9\u062a\u0647 \u0645\u0647\u0645 \u06a9\u0647 \u062f\u0631 \u0627\u0646\u062a\u0647\u0627\u06cc \u0645\u0637\u0644\u0628 \u06af\u0641\u062a\u0647 \u0634\u062f\u0647 \u0631\u0627 \u062f\u0631 \u0646\u0638\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f. 1- \u0627\u0628\u062a\u062f\u0627 \u0648\u0627\u0631\u062f \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u0644\u06cc\u0646\u0648\u06a9\u0633 CentOS 7 \u062e\u0648\u062f \u0634\u0648\u06cc\u062f. 2- \u0644\u06cc\u0633\u062a Repository \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0646\u0635\u0628 \u0646\u0645\u0627\u0626\u06cc\u062f.(\u0628\u0647 \u062f\u0644\u06cc\u0644 \u0627\u06cc\u0646\u06a9\u0647 \u067e\u06a9\u06cc\u062c MongoDB \u062f\u0631 \u0644\u06cc\u0633\u062a Repository \u067e\u06cc\u0634 \u0641\u0631\u0636 centos 7 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f) nano \/etc\/yum.repos.d\/mongodb-org.repo \u0633\u067e\u0633 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 &hellip;<\/p>","protected":false},"author":1,"featured_media":1495,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[275,68,274,62],"tags":[277,276],"class_list":["post-1481","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-cwp","category-linux","category-tutorial","tag-mongodb-centos7","tag----mongodb--centos7"],"uagb_featured_image_src":{"full":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7.png",700,475,false],"thumbnail":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7-150x150.png",150,150,true],"medium":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7-300x204.png",300,204,true],"medium_large":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7.png",700,475,false],"large":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7.png",700,475,false],"1536x1536":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7.png",700,475,false],"2048x2048":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7.png",700,475,false],"trp-custom-language-flag":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7-18x12.png",18,12,true],"jannah-image-small":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7-220x150.png",220,150,true],"jannah-image-large":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7-390x220.png",390,220,true],"jannah-image-post":["https:\/\/mellicloud.com\/main\/wp-content\/uploads\/2021\/11\/mongodb_on_Centos7-700x470.png",700,470,true]},"uagb_author_info":{"display_name":"Admin","author_link":"https:\/\/mellicloud.com\/en\/author\/admin3207\/"},"uagb_comment_info":0,"uagb_excerpt":"\u062f\u0631 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0627\u06cc\u0631\u0627\u0646 \u0646\u06a9\u062a\u0647 \u0645\u0647\u0645 \u06a9\u0647 \u062f\u0631 \u0627\u0646\u062a\u0647\u0627\u06cc \u0645\u0637\u0644\u0628 \u06af\u0641\u062a\u0647 \u0634\u062f\u0647 \u0631\u0627 \u062f\u0631 \u0646\u0638\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f. 1- \u0627\u0628\u062a\u062f\u0627 \u0648\u0627\u0631\u062f \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u0644\u06cc\u0646\u0648\u06a9\u0633 CentOS 7 \u062e\u0648\u062f \u0634\u0648\u06cc\u062f. 2- \u0644\u06cc\u0633\u062a Repository \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0646\u0635\u0628 \u0646\u0645\u0627\u0626\u06cc\u062f.(\u0628\u0647 \u062f\u0644\u06cc\u0644 \u0627\u06cc\u0646\u06a9\u0647 \u067e\u06a9\u06cc\u062c MongoDB \u062f\u0631 \u0644\u06cc\u0633\u062a Repository \u067e\u06cc\u0634 \u0641\u0631\u0636 centos 7 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f) nano \/etc\/yum.repos.d\/mongodb-org.repo \u0633\u067e\u0633 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627&hellip;","_links":{"self":[{"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/posts\/1481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/comments?post=1481"}],"version-history":[{"count":10,"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/posts\/1481\/revisions"}],"predecessor-version":[{"id":1493,"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/posts\/1481\/revisions\/1493"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/media\/1495"}],"wp:attachment":[{"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/media?parent=1481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/categories?post=1481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellicloud.com\/en\/wp-json\/wp\/v2\/tags?post=1481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}