{"id":113,"date":"2023-02-18T22:14:50","date_gmt":"2023-08-05T16:55:36","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2025-07-31T20:50:07","modified_gmt":"2025-07-31T11:50:07","slug":"centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b\u3002<\/h3>\n<p>MongoDB\u306f\u3001\u7121\u6599\u304b\u3064\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u6307\u5411\u578b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002\u4f1d\u7d71\u7684\u306a\u30c6\u30fc\u30d6\u30eb\u3092\u30d9\u30fc\u30b9\u3068\u3057\u305f\u95a2\u4fc2\u578b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u69cb\u9020\u306b\u4f9d\u5b58\u3057\u306a\u3044\u305f\u3081\u3001NoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066\u5206\u985e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4ee3\u308f\u308a\u306b\u3001\u52d5\u7684\u30b9\u30ad\u30fc\u30de\u3092\u6301\u3064JSON\u306e\u3088\u3046\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u95a2\u4fc2\u578b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306f\u7570\u306a\u308a\u3001MongoDB\u3067\u306f\u30c7\u30fc\u30bf\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8ffd\u52a0\u3059\u308b\u524d\u306b\u4e8b\u524d\u306b\u5b9a\u7fa9\u3055\u308c\u305f\u30b9\u30ad\u30fc\u30de\u304c\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002\u30b9\u30ad\u30fc\u30de\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3044\u3064\u3067\u3082\u5909\u66f4\u3067\u304d\u3001\u66f4\u65b0\u3055\u308c\u305f\u30b9\u30ad\u30fc\u30de\u3067\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u5fc5\u8981\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001CentOS 7 \u30b5\u30fc\u30d0\u30fc\u306bMongoDB Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u59cb\u3081\u308b\u524d\u306b\u3001\u5fc5\u305a\u6e96\u5099\u304c\u6574\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul class=\"post-ul\">\n<li>A CentOS 7 server with a non-root sudo-enabled user. For guidance, please see our tutorial, Initial Server Setup with CentOS 7.<\/li>\n<\/ul>\n<h2>\u30b9\u30c6\u30c3\u30d71 &#8211; MongoDB\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8ffd\u52a0<\/h2>\n<p>CentOS\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u3001mongodb-org\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001MongoDB\u306f\u5c02\u7528\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u7dad\u6301\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>VI\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001CentOS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3067\u3042\u308bYum\u306e\u305f\u3081\u306e.repo\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">vi<\/span> \/etc\/yum.repos.d\/mongodb-org.repo<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001MongoDB\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u300cRed Hat\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u8a2a\u308c\u3001\u6700\u65b0\u306e\u5b89\u5b9a\u7248\u30ea\u30ea\u30fc\u30b9\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u60c5\u5831\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u8868\u73fe\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\uff08\u9078\u629e\u80a2\u306f1\u3064\u306e\u307f\uff09\uff1a<br \/>\n\/etc\/yum.repos.d\/mongodb-org.repo\/etc\/yum.repos.d\/mongodb-org.repo\u306e\u65e5\u672c\u8a9e\u3067\u306e\u8868\u73fe\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>[mongodb-org-<mark>6.0<\/mark>]\r\nname=MongoDB Repository\r\nbaseurl=https:\/\/repo.mongodb.org\/yum\/redhat\/$releasever\/mongodb-org\/<mark>6.0<\/mark>\/x86_64\/\r\ngpgcheck=1\r\nenabled=1\r\ngpgkey=https:\/\/www.mongodb.org\/static\/pgp\/server-<mark>6.0<\/mark>.asc\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u5909\u66f4\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306bESC\u30ad\u30fc\u3092\u62bc\u3057\u3001:wq\u3068\u5165\u529b\u3057\u3001ENTER\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002 (\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u5909\u66f4\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306bESC\u30ad\u30fc\u3092\u62bc\u3057\u305f\u5f8c\u3001:wq\u3068\u5165\u529b\u3057\u3001ENTER\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002)<\/p>\n<p>\u7d9a\u884c\u3059\u308b\u524d\u306b\u3001yum\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u5185\u306bMongoDB\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u5b58\u5728\u3059\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002repolist\u30b3\u30de\u30f3\u30c9\u306f\u6709\u52b9\u306a\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u4e00\u89a7\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">yum repolist<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>. . . repo id repo name base\/7\/x86_64 CentOS-7 &#8211; Base extras\/7\/x86_64 CentOS-7 &#8211; Extras <mark>mongodb-org-6.0\/7\/x86_64 MongoDB Repository<\/mark> updates\/7\/x86_64 CentOS-7 &#8211; Updates . . .<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>MongoDB\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u6e96\u5099\u3067\u304d\u3066\u3044\u308b\u306a\u3089\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72 &#8211; MongoDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u300cmongodb-org\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001yum\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u300d<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> mongodb-org<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>2\u3064\u306e\u300c\u3053\u308c\u3067\u3088\u3044\u3067\u3059\u304b [y\/N]:\u300d\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u521d\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306fMongoDB\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u8a31\u53ef\u3057\u30012\u3064\u76ee\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306fGPG\u30ad\u30fc\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002MongoDB\u306e\u30d1\u30d6\u30ea\u30c3\u30b7\u30e3\u30fc\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u7f72\u540d\u3057\u3001yum\u306f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u6b63\u5f53\u6027\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u5404\u30d7\u30ed\u30f3\u30d7\u30c8\u3067Y\u3068\u5165\u529b\u3057\u3001ENTER\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306b\u3001systemctl\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066MongoDB\u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl start mongod<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u4f7f\u3044\u307e\u305b\u3093\u304c\u3001reload\u30b3\u30de\u30f3\u30c9\u3068stop\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066MongoDB\u30b5\u30fc\u30d3\u30b9\u306e\u72b6\u614b\u3082\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>reload\u30b3\u30de\u30f3\u30c9\u306f\u3001mongod\u30d7\u30ed\u30bb\u30b9\u306b\u5bfe\u3057\u3066\u518d\u8d77\u52d5\u306a\u3057\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\/etc\/mongod.conf\u3092\u8aad\u307f\u8fbc\u307f\u3001\u5909\u66f4\u5185\u5bb9\u3092\u9069\u7528\u3059\u308b\u3088\u3046\u306b\u8981\u6c42\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl reload mongod<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5168\u3066\u306e\u5b9f\u884c\u4e2d\u306emongod\u30d7\u30ed\u30bb\u30b9\u3092\u505c\u6b62\u3059\u308b\u306e\u306f\u3001\u505c\u6b62\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl stop mongod<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>systemctl\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u306f\u3001start\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u306b\u7d50\u679c\u3092\u63d0\u4f9b\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001mongod.log\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u3092tail\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d3\u30b9\u304c\u958b\u59cb\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">tail<\/span> \/var\/log\/mongodb\/mongod.log<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>. . . <mark>[initandlisten] waiting for connections on port 27017<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u63a5\u7d9a\u5f85\u6a5f\u306e\u51fa\u529b\u306f\u3001MongoDB\u304c\u6b63\u5e38\u306b\u8d77\u52d5\u3057\u3001MongoDB\u30b7\u30a7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">mongo<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1aMongoDB\u30b7\u30a7\u30eb\u3092\u8d77\u52d5\u3059\u308b\u969b\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff1a<br \/>\n**\u6ce8\u610f:** \u30bd\u30d5\u30c8\u5236\u9650\u304c\u975e\u5e38\u306b\u4f4e\u3044\u3067\u3059\u3002\u8a2d\u5b9a\u3055\u308c\u305f\u5236\u9650\u306f4096\u30d7\u30ed\u30bb\u30b9\u300164000\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u30d7\u30ed\u30bb\u30b9\u306e\u6570\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u6570\u306e0.5\u500d\u4ee5\u4e0a\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/div>\n<p>MongoDB\u306f\u30b9\u30ec\u30c3\u30c9\u578b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002MongoDB\u306f\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u8ffd\u52a0\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8b66\u544a\u306b\u306f\u3001MongoDB\u304c\u6700\u3082\u52b9\u679c\u7684\u306b\u52d5\u4f5c\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u540c\u6642\u306b\u30aa\u30fc\u30d7\u30f3\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u6570\u3068\u6bd4\u3079\u3066\u3001\u8d77\u52d5\u3067\u304d\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u6570\u304c\u534a\u5206\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u8ff0\u3079\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u8b66\u544a\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\u3001mongod\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u30bd\u30d5\u30c8\u5236\u9650\u5024\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306b\u300120-nproc.conf\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\uff1a<\/p>\n<p>sudo vi \/etc\/security\/limits.d\/20-nproc.conf<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<br \/>\n\/etc\/security\/limits.d\/20-nproc.conf<br \/>\n. . .<br \/>\nmongod soft nproc 32000<\/p>\n<p>\u5909\u66f4\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u3001ESC\u30ad\u30fc\u3092\u62bc\u3057\u3001:wq\u3068\u5165\u529b\u3057\u3001ENTER\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p>MongoDB\u304c\u65b0\u3057\u3044\u5236\u9650\u3092\u8a8d\u8b58\u3059\u308b\u305f\u3081\u306b\u306f\u3001systemctl\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066mongod\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p>\n<p>sudo systemctl restart mongod<\/p>\n<p>\u518d\u8d77\u52d5\u5f8c\u3001MongoDB\u30b7\u30a7\u30eb\u306b\u63a5\u7d9a\u3059\u308b\u3068\u3001\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n<p>MongoDB\u306e\u30b7\u30a7\u30eb\u304b\u3089\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u65b9\u6cd5\u3092\u5b66\u3076\u305f\u3081\u306b\u306f\u3001db.help() \u30e1\u30bd\u30c3\u30c9\u306e\u51fa\u529b\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001db\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u30ea\u30b9\u30c8\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;\">db.help<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>DB methods: db.adminCommand(nameOrDocument) &#8211; switches to &#8216;admin&#8217; db, and runs command [ just calls db.runCommand(&#8230;) ] db.auth(username, password) db.cloneDatabase(fromhost) db.commandHelp(name) returns the help for the command db.copyDatabase(fromdb, todb, fromhost) db.createCollection(name, { size : &#8230;, capped : &#8230;, max : &#8230; } ) db.createUser(userDocument) db.currentOp() displays currently executing operations in the db db.dropDatabase() . . .<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067mongod\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3057\u305f\u307e\u307e\u3001exit\u30b3\u30de\u30f3\u30c9\u3067\u30b7\u30a7\u30eb\u3092\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;\"><span class=\"token builtin class-name\">exit<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Bye<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h2>\u30b9\u30c6\u30c3\u30d73 &#8211; \u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u306e\u691c\u8a3c\u3092\u884c\u3046<\/h2>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f7f\u7528\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u306a\u3051\u308c\u3070\u52d5\u4f5c\u3057\u306a\u3044\u305f\u3081\u3001\u30b7\u30b9\u30c6\u30e0\u3068\u5171\u306bMongoDB\u306e\u30c7\u30fc\u30e2\u30f3\u3067\u3042\u308bmongod\u304c\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>systemctl\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u3001\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">systemctl is-enabled mongod<span class=\"token punctuation\">;<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$?<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u304c\u30bc\u30ed\u306e\u5834\u5408\u3001\u6709\u52b9\u306a\u30c7\u30fc\u30e2\u30f3\u3067\u3042\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u79c1\u305f\u3061\u304c\u671b\u3093\u3067\u3044\u308b\u72b6\u614b\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u51fa\u529b\u304c1\u306e\u5834\u5408\u306f\u3001\u8d77\u52d5\u3057\u306a\u3044\u7121\u52b9\u306a\u30c7\u30fc\u30e2\u30f3\u3067\u3042\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>. . . enabled <mark>0<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30fc\u30e2\u30f3\u304c\u7121\u52b9\u306b\u306a\u3063\u305f\u5834\u5408\u306f\u3001systemctl\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u305d\u308c\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> mongod<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u518d\u8d77\u52d5\u5f8c\u3082\u81ea\u52d5\u7684\u306b\u8d77\u52d5\u3059\u308b\u3001\u5b9f\u884c\u53ef\u80fd\u306aMongoDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u73fe\u5728\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d74 &#8211; \u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\uff08\u4efb\u610f\uff09<\/h2>\n<p>\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u3068\u306f\u7570\u306a\u308a\u3001MongoDB\u306b\u306f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u65b0\u3057\u3044\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u672c\u756a\u30c7\u30fc\u30bf\u3067\u5b9f\u9a13\u3057\u305f\u304f\u306a\u3044\u305f\u3081\u3001MongoDB\u306e\u4f8b\u304b\u3089\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u3053\u306eJSON\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u30ec\u30b9\u30c8\u30e9\u30f3\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001MongoDB\u3068\u306e\u5bfe\u8a71\u3092\u7df4\u7fd2\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u306b\u640d\u5bb3\u3092\u4e0e\u3048\u308b\u3053\u3068\u3092\u907f\u3051\u307e\u3059\u3002<\/p>\n<p>\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">cd<\/span> \/tmp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>curl\u30b3\u30de\u30f3\u30c9\u3068MongoDB\u306e\u30ea\u30f3\u30af\u3092\u4f7f\u7528\u3057\u3066\u3001JSON\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-LO<\/span> https:\/\/raw.githubusercontent.com\/mongodb\/docs-assets\/primer-dataset\/primer-dataset.json<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>mongoimport\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30c7\u30fc\u30bf\u3092\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u633f\u5165\u3057\u307e\u3059\u3002&#8211;db\u30d5\u30e9\u30b0\u306f\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6307\u5b9a\u3057\u3001&#8211;collection\u30d5\u30e9\u30b0\u306f\u60c5\u5831\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u3069\u3053\u306b\u4fdd\u5b58\u3055\u308c\u308b\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u307e\u305f\u3001&#8211;file\u30d5\u30e9\u30b0\u306f\u30b3\u30de\u30f3\u30c9\u304c\u30a4\u30f3\u30dd\u30fc\u30c8\u64cd\u4f5c\u3092\u884c\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">mongoimport <span class=\"token parameter variable\">&#8211;db<\/span> <span class=\"token builtin class-name\">test<\/span> <span class=\"token parameter variable\">&#8211;collection<\/span> restaurants <span class=\"token parameter variable\">&#8211;file<\/span> \/tmp\/primer-dataset.json<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u306f\u3001primer-dataset.json\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u8fbc\u3093\u3067\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>connected to: localhost imported 25359 documents<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6e96\u5099\u3057\u305f\u3089\u3001\u305d\u308c\u306b\u5bfe\u3057\u3066\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>MongoDB\u30b7\u30a7\u30eb\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">mongo<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f\u5834\u6240\u3067\u3042\u308b\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u30b7\u30a7\u30eb\u306b\u3088\u3063\u3066\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u9078\u629e\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u3059\u3079\u3066\u306e\u30ec\u30b9\u30c8\u30e9\u30f3\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u3001find() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ec\u30b9\u30c8\u30e9\u30f3\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u30af\u30a8\u30ea\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u306f25,000\u4ee5\u4e0a\u306e\u30a8\u30f3\u30c8\u30ea\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30af\u30a8\u30ea\u306e\u51fa\u529b\u3092\u6307\u5b9a\u3055\u308c\u305f\u6570\u306b\u6e1b\u3089\u3059\u305f\u3081\u306b\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306elimit()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3055\u3089\u306b\u3001pretty() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3068\u6539\u884c\u3068\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u542b\u3081\u3066\u60c5\u5831\u304c\u3088\u308a\u4eba\u9593\u306b\u8aad\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;\">db.restaurants.find<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>.limit<span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span>.pretty<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>{ &#8220;_id&#8221; : ObjectId(&#8220;57e0443b46af7966d1c8fa68&#8221;), &#8220;address&#8221; : { &#8220;building&#8221; : &#8220;1007&#8221;, &#8220;coord&#8221; : [ -73.856077, 40.848447 ], &#8220;street&#8221; : &#8220;Morris Park Ave&#8221;, &#8220;zipcode&#8221; : &#8220;10462&#8221; }, &#8220;borough&#8221; : &#8220;Bronx&#8221;, &#8220;cuisine&#8221; : &#8220;Bakery&#8221;, &#8220;grades&#8221; : [ { &#8220;date&#8221; : ISODate(&#8220;2014-03-03T00:00:00Z&#8221;), &#8220;grade&#8221; : &#8220;A&#8221;, &#8220;score&#8221; : 2 }, { &#8220;date&#8221; : ISODate(&#8220;2013-09-11T00:00:00Z&#8221;), &#8220;grade&#8221; : &#8220;A&#8221;, &#8220;score&#8221; : 6 }, { &#8220;date&#8221; : ISODate(&#8220;2013-01-24T00:00:00Z&#8221;), &#8220;grade&#8221; : &#8220;A&#8221;, &#8220;score&#8221; : 10 }, { &#8220;date&#8221; : ISODate(&#8220;2011-11-23T00:00:00Z&#8221;), &#8220;grade&#8221; : &#8220;A&#8221;, &#8220;score&#8221; : 9 }, { &#8220;date&#8221; : ISODate(&#8220;2011-03-10T00:00:00Z&#8221;), &#8220;grade&#8221; : &#8220;B&#8221;, &#8220;score&#8221; : 14 } ], &#8220;name&#8221; : &#8220;Morris Park Bake Shop&#8221;, &#8220;restaurant_id&#8221; : &#8220;30075445&#8221; }<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>MongoDB\u306b\u6163\u308c\u308b\u305f\u3081\u306b\u306f\u5f15\u304d\u7d9a\u304d\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001db.restaurants.drop()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;\">db.restaurants.drop<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001exit \u30b3\u30de\u30f3\u30c9\u3067\u30b7\u30a7\u30eb\u3092\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;\"><span class=\"token builtin class-name\">exit<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Bye<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001yum\u306b\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u3001\u7c21\u5358\u306a\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u307e\u3057\u305f\u3002\u307e\u3060MongoDB\u3067\u3067\u304d\u308b\u3053\u3068\u306f\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u6301\u3064\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u3001\u591a\u304f\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u57cb\u3081\u308b\u3053\u3068\u3001\u305d\u3057\u3066\u5805\u7262\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u306a\u3069\u3067\u3059\u3002MongoDB\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u5b66\u3073\u305f\u3044\u65b9\u306f\u3001\u5f53\u793e\u306e\u300cMongoDB\u3092\u4f7f\u7528\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7ba1\u7406\u65b9\u6cd5\u300d\u30b7\u30ea\u30fc\u30ba\u3084\u4ed6\u306eMongoDB\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b\u3002 MongoDB\u306f\u3001\u7121\u6599\u304b\u3064\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u6307\u5411\u578b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002\u4f1d\u7d71\u7684\u306a\u30c6\u30fc\u30d6\u30eb\u3092\u30d9\u30fc\u30b9\u3068\u3057\u305f\u95a2\u4fc2\u578b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u69cb\u9020\u306b\u4f9d\u5b58\u3057\u306a\u3044\u305f\u3081\u3001NoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066\u5206\u985e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4ee3\u308f\u308a\u306b\u3001\u52d5\u7684 [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[17,26],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-17","tag-26"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/centos-7\u306bmongodb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/centos-7\u306bmongodb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-05T16:55:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T11:50:07+00:00\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"15\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-08-05T16:55:36+00:00\",\"dateModified\":\"2025-07-31T11:50:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"description\":\"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/centos-7\u306bmongodb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5","og_description":"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/centos-7\u306bmongodb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-05T16:55:36+00:00","article_modified_time":"2025-07-31T11:50:07+00:00","author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"15\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-08-05T16:55:36+00:00","dateModified":"2025-07-31T11:50:07+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"description":"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"CentOS 7\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/centos-7%e3%81%abmongodb%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":325703,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions\/325703"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}