{"id":854,"date":"2014-06-19T13:50:37","date_gmt":"2014-06-19T04:50:37","guid":{"rendered":"http:\/\/www.toyzon.com\/?p=854"},"modified":"2014-06-19T13:50:37","modified_gmt":"2014-06-19T04:50:37","slug":"mongodb-replicaset-%ec%84%a4%ec%a0%95%ec%8b%9c-couldnt-initiate-cant-find-self-in-the-replset-config-my-port-%ec%98%a4%eb%a5%98","status":"publish","type":"post","link":"https:\/\/www.toyzon.com\/?p=854","title":{"rendered":"mongoDB ReplicaSet \uc124\uc815\uc2dc couldn&#8217;t initiate : can&#8217;t find self in the replset config my port \uc624\ub958"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>mongoDB ReplicaSet \uc124\uc815\uc2dc rs.initiate() \uc2e4\ud589\uc2dc \uc624\ub958\uac00 \ubc1c\uc0dd\ud558\uba70 \uc815\uc0c1\uc801\uc73c\ub85c \uc124\uc815\uc774 \uc9c4\ud589\uc774 \uc548\ub418\ub294 \ubb38\uc81c\uac00 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<table>\n<tbody>\n<tr>\n<td>[root@mongo03 cfg]# <strong><span style=\"color: #ff0000;\">mongo localhost:31000<\/span><\/strong><br \/>\nMongoDB shell version: 2.4.4-pre-<br \/>\nconnecting to: localhost:31000\/test<br \/>\nWelcome to the MongoDB shell.<br \/>\nFor interactive help, type &#8220;help&#8221;.<br \/>\nFor more comprehensive documentation, see<br \/>\nhttp:\/\/docs.mongodb.org\/<br \/>\nQuestions? Try the support group<br \/>\nhttp:\/\/groups.google.com\/group\/mongodb-user<br \/>\n&gt; <span style=\"color: rgb(255, 0, 0);\"><strong>use admin<\/strong><\/span><br \/>\n\u3141switched to db admin<br \/>\n&gt; <strong><span style=\"color: #ff0000;\">rs.initiate()<\/span><\/strong><br \/>\n{<br \/>\n&#8220;info2&#8221; : &#8220;no configuration explicitly specified &#8212; making one&#8221;,<br \/>\n&#8220;me&#8221; : &#8220;mongo03:31000&#8221;,<br \/>\n&#8220;ok&#8221; : 0,<br \/>\n&#8220;errmsg&#8221; : &#8220;<strong><span style=\"color: #ff0000;\">couldn&#8217;t initiate : can&#8217;t find self in the replset config my port: 31000<\/span><\/strong>&#8221;<br \/>\n}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\ubb38\uc81c \ud574\uacb0<\/strong> : \ud574\ub2f9 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud558\ub294 \uac74 mongoDB\uc5d0\uc11c IP\ub85c \ud574\ub2f9 \uc11c\ubc84 DB\uc5d0 \uc811\uadfc\ud558\ub294 \uac83\uc774 \uc544\ub2cc HOSTNAME\uc73c\ub85c \uc811\uadfc\ud558\uae30\ub54c\ubb38\uc5d0 \ubc1c\uc0dd\ud55c \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc5d0\ub7ec\uba54\uc138\uc9c0\ub97c \ubcf4\uba74 &#8220;me&#8221;\ub77c\uace0 \ub41c \ubd80\ubd84\uc5d0 hostname\uc774 \ud45c\uc2dc\ub418\uc5b4\uc788\uc2b5\ub2c8\ub2e4. \ud574\ub2f9 hostname\uc73c\ub85c mongoDB\uc5d0 \uc798 \ucc3e\uc544\uac08 \uc218 \uc788\uac8c \/etc\/hosts\ud30c\uc77c\uc5d0 \ud574\ub2f9 hostname\uc744 \ucd94\uac00\ud574\uc8fc\uba74 \ud574\uacb0\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n <!-- AdSense Now! Lite: WP is not in the loop.  -->\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; mongoDB ReplicaSet \uc124\uc815\uc2dc rs.initiate() \uc2e4\ud589\uc2dc \uc624\ub958\uac00 \ubc1c\uc0dd\ud558\uba70 \uc815\uc0c1\uc801\uc73c\ub85c \uc124\uc815\uc774 \uc9c4\ud589\uc774 \uc548\ub418\ub294 \ubb38\uc81c\uac00 \uc788\uc5c8\uc2b5\ub2c8\ub2e4. [root@mongo03 cfg]# mongo localhost:31000 MongoDB shell version: 2.4.4-pre- connecting to: localhost:31000\/test Welcome to the MongoDB shell. For interactive help, type &#8220;help&#8221;. For more comprehensive documentation, see http:\/\/docs.mongodb.org\/ Questions? Try the support group http:\/\/groups.google.com\/group\/mongodb-user &gt; use admin \u3141switched to db admin &gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"mongoDB ReplicaSet \uc124\uc815\uc2dc couldn't initiate : can't find self in the replset config my port \uc624\ub958 - ToyZon","description":"&nbsp; mongoDB ReplicaSet \uc124\uc815\uc2dc rs.initiate() \uc2e4\ud589\uc2dc \uc624\ub958\uac00 \ubc1c\uc0dd\ud558\uba70 \uc815\uc0c1\uc801\uc73c\ub85c \uc124\uc815\uc774 \uc9c4\ud589\uc774 \uc548\ub418\ub294 \ubb38\uc81c\uac00 \uc788\uc5c8\uc2b5\ub2c8\ub2e4. [root@mongo03 cfg]# mongo localhost:31000 MongoDB shell version: 2.4.4-pre"},"footnotes":""},"categories":[246],"tags":[147,436],"class_list":["post-854","post","type-post","status-publish","format-standard","hentry","category-mongodb-","tag-mongodb","tag-db"],"_links":{"self":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts\/854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=854"}],"version-history":[{"count":1,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts\/854\/revisions"}],"predecessor-version":[{"id":855,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=\/wp\/v2\/posts\/854\/revisions\/855"}],"wp:attachment":[{"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.toyzon.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}