{"type":"rich","published":"2017-10-21 15:01:32","categories":["MongoDB"],"provider_name":"Hatena Blog","description":"MongoDB\u306e\u30ec\u30d7\u30ea\u30ab\u30bb\u30c3\u30c8\u3092\u89e3\u9664\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u3001 \u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u89e3\u9664\u3059\u308b\u65b9\u6cd5\u304c\u5206\u304b\u3089\u306a\u304f\u306f\u307e\u3063\u305f\u6642\u306e\u30e1\u30e2\u3002 local\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u524a\u9664 \u30db\u30b9\u30c8\u6a5f\u3067\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c mongo >use local >db.dropDatabase() conf\u30d5\u30a1\u30a4\u30eb\u5909\u66f4 mongodb ver.2\u7cfb\u306e\u5834\u5408 vi /etc/mongod.conf ---------- # in replicated mongo databases, specify the replica set name here replSet=replSetname ---------- \u2193 ---------- # i\u2026","blog_url":"https://sanzo83.hatenablog.com/","title":"MongoDB\u3067\u30ec\u30d7\u30ea\u30ab\u30bb\u30c3\u30c8\u3092\u4eca\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u89e3\u9664\u3059\u308b\u65b9\u6cd5","blog_title":"\u4e09\u8535\u958b\u767a\u30e1\u30e2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsanzo83.hatenablog.com%2Fentry%2F2017%2F10%2F21%2F150132\" title=\"MongoDB\u3067\u30ec\u30d7\u30ea\u30ab\u30bb\u30c3\u30c8\u3092\u4eca\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u89e3\u9664\u3059\u308b\u65b9\u6cd5 - \u4e09\u8535\u958b\u767a\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","author_name":"sanzo83","url":"https://sanzo83.hatenablog.com/entry/2017/10/21/150132","author_url":"https://blog.hatena.ne.jp/sanzo83/","provider_url":"https://hatena.blog","version":"1.0","image_url":null,"height":"190"}