{"id":1201,"date":"2024-07-17T12:16:11","date_gmt":"2024-07-17T03:16:11","guid":{"rendered":"https:\/\/absol.kr\/?p=1201"},"modified":"2024-07-17T12:16:11","modified_gmt":"2024-07-17T03:16:11","slug":"mongodb-%ec%84%a4%ec%b9%98-error-%eb%b0%9c%ec%83%9d%ea%b3%bc-%eb%8c%80%ec%b2%98","status":"publish","type":"post","link":"https:\/\/absol.kr\/?p=1201","title":{"rendered":"MongoDB \uc124\uce58 error \ubc1c\uc0dd\uacfc \ub300\ucc98"},"content":{"rendered":"\n<p>\uc544\ub798\uc640 \uac19\uc740 mongoDB \uc124\uce58\ud558\ub294 \uacfc\uc815\uc5d0\uc11c \uc0dd\uae34 \uc5d0\ub7ec\uc5d0 \ub300\ud55c \uc218\uc815\ubc29\ubc95\uacfc \ub300\ucc98\uc555\ub098\ub2e4, <\/p>\n\n\n\n<p>wget -qO &#8211; <a href=\"https:\/\/www.mongodb.org\/static\/pgp\/server-6.0.asc\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.mongodb.org\/static\/pgp\/server-6.0.asc<\/a> | sudo apt-key add &#8211; Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).<\/p>\n\n\n\n<p><code>apt-key<\/code> \uba85\ub839\uc5b4\ub294 \ub354 \uc774\uc0c1 \uc0ac\uc6a9\ub418\uc9c0 \uc54a\uc73c\uba70, \ucd5c\uc2e0 \ubc84\uc804\uc758 Ubuntu\uc5d0\uc11c\ub294 \ub2e4\ub978 \ubc29\uc2dd\uc73c\ub85c PGP \ud0a4\ub97c \ucd94\uac00\ud574\uc57c \ud569\ub2c8\ub2e4. <code>apt-key<\/code> \ub300\uc2e0 <code>trusted.gpg.d<\/code> \ub514\ub809\ud1a0\ub9ac\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud0a4\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ub2e4\uc74c\uc740 <code>wget<\/code>\uc744 \uc0ac\uc6a9\ud558\uc5ec MongoDB PGP \ud0a4\ub97c \ucd94\uac00\ud558\uace0, MongoDB\ub97c \uc124\uce58\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. PGP \ud0a4 \ub2e4\uc6b4\ub85c\ub4dc \ubc0f \ucd94\uac00<\/h3>\n\n\n\n<p>\uba3c\uc800, MongoDB\uc758 PGP \ud0a4\ub97c \ub2e4\uc6b4\ub85c\ub4dc\ud558\uc5ec <code>\/usr\/share\/keyrings<\/code> \ub514\ub809\ud1a0\ub9ac\uc5d0 \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget -qO - https:\/\/www.mongodb.org\/static\/pgp\/server-6.0.asc | sudo tee \/usr\/share\/keyrings\/mongodb-archive-keyring.gpg &gt; \/dev\/null<br><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. MongoDB \uc800\uc7a5\uc18c \ucd94\uac00<\/h3>\n\n\n\n<p>\ub2e4\uc74c\uc73c\ub85c, MongoDB \uc800\uc7a5\uc18c\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc11c\ub294 <code>signed-by<\/code> \uc635\uc158\uc744 \uc0ac\uc6a9\ud558\uc5ec PGP \ud0a4\ub97c \uc9c0\uc815\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"deb [ arch=amd64,arm64 signed-by=\/usr\/share\/keyrings\/mongodb-archive-keyring.gpg ] https:\/\/repo.mongodb.org\/apt\/ubuntu $(lsb_release -cs)\/mongodb-org\/6.0 multiverse\" | sudo tee \/etc\/apt\/sources.list.d\/mongodb-org-6.0.list<br><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. \ud328\ud0a4\uc9c0 \ubaa9\ub85d \uc5c5\ub370\uc774\ud2b8 \ubc0f MongoDB \uc124\uce58<\/h3>\n\n\n\n<p>\ud328\ud0a4\uc9c0 \ubaa9\ub85d\uc744 \uc5c5\ub370\uc774\ud2b8\ud558\uace0 MongoDB\ub97c \uc124\uce58\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt-get update<br>sudo apt-get install -y mongodb-org<br><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. MongoDB \uc11c\ube44\uc2a4 \uc2dc\uc791<\/h3>\n\n\n\n<p>MongoDB \uc11c\ube44\uc2a4\ub97c \uc2dc\uc791\ud558\uace0, \uc2dc\uc791 \uc5ec\ubd80\ub97c \ud655\uc778\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo systemctl start mongod<br>sudo systemctl status mongod<br><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. MongoDB \uc11c\ube44\uc2a4 \uc790\ub3d9 \uc2dc\uc791 \uc124\uc815<\/h3>\n\n\n\n<p>\uc11c\ubc84\uac00 \ubd80\ud305\ub420 \ub54c MongoDB\uac00 \uc790\ub3d9\uc73c\ub85c \uc2dc\uc791\ub418\ub3c4\ub85d \uc124\uc815\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo systemctl enable mongod<br><\/code><\/pre>\n\n\n\n<p>\uc704 \ub2e8\uacc4\ub97c \ub530\ub77c \ud558\uba74 \ucd5c\uc2e0 \ubc29\uc2dd\uc73c\ub85c MongoDB\ub97c \uc124\uce58\ud558\uace0 PGP \ud0a4\ub97c \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <code>apt-key<\/code> \uacbd\uace0 \uba54\uc2dc\uc9c0\ub97c \ud53c\ud558\uace0, \ud0a4\ub97c \uc548\uc804\ud558\uac8c \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ud558\uc9c0\ub9cc \uc774 \ubc29\ubc95\uc73c\ub85c\ub3c4 \uc624\ub958\uac00 \uac8c\uc18d\ub41c\ub2e4\uba74 <a href=\"https:\/\/absol.kr\/?p=1202\" data-type=\"page\" data-id=\"35\">\ub2e4\uc74c \ub300\ucc98 \ubc29\uc548<\/a>\uc744 \ucc38\uace0\ud574 \uc8fc\uc138\uc694.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc544\ub798\uc640 \uac19\uc740 mongoDB \uc124\uce58\ud558\ub294 \uacfc\uc815\uc5d0\uc11c \uc0dd\uae34 \uc5d0\ub7ec\uc5d0 \ub300\ud55c \uc218\uc815\ubc29\ubc95\uacfc \ub300\ucc98\uc555\ub098\ub2e4, wget -qO &#8211; https:\/\/www.mongodb.org\/static\/pgp\/server-6.0.asc | sudo apt-key add &#8211; Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). apt-key \uba85\ub839\uc5b4\ub294 \ub354 \uc774\uc0c1 \uc0ac\uc6a9\ub418\uc9c0 \uc54a\uc73c\uba70, \ucd5c\uc2e0 \ubc84\uc804\uc758 Ubuntu\uc5d0\uc11c\ub294 \ub2e4\ub978 \ubc29\uc2dd\uc73c\ub85c PGP \ud0a4\ub97c \ucd94\uac00\ud574\uc57c \ud569\ub2c8\ub2e4. apt-key \ub300\uc2e0 trusted.gpg.d \ub514\ub809\ud1a0\ub9ac\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud0a4\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. &hellip; <a href=\"https:\/\/absol.kr\/?p=1201\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;MongoDB \uc124\uce58 error \ubc1c\uc0dd\uacfc \ub300\ucc98&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1201","post","type-post","status-publish","format-standard","hentry","category-d-service"],"_links":{"self":[{"href":"https:\/\/absol.kr\/index.php?rest_route=\/wp\/v2\/posts\/1201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/absol.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/absol.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/absol.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/absol.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1201"}],"version-history":[{"count":2,"href":"https:\/\/absol.kr\/index.php?rest_route=\/wp\/v2\/posts\/1201\/revisions"}],"predecessor-version":[{"id":1208,"href":"https:\/\/absol.kr\/index.php?rest_route=\/wp\/v2\/posts\/1201\/revisions\/1208"}],"wp:attachment":[{"href":"https:\/\/absol.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/absol.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/absol.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}