{"id":305,"date":"2019-04-11T16:55:50","date_gmt":"2019-04-11T08:55:50","guid":{"rendered":"https:\/\/www.aiqinqin.info\/?p=305"},"modified":"2019-04-11T18:06:22","modified_gmt":"2019-04-11T10:06:22","slug":"mongodb%e7%9a%84%e5%ae%89%e8%a3%85%e5%92%8c%e5%b8%b8%e7%94%a8%e9%85%8d%e7%bd%ae%e9%a1%b9%e7%9a%84%e5%90%ab%e4%b9%89","status":"publish","type":"post","link":"https:\/\/www.aiqinqin.info\/?p=305","title":{"rendered":"mongodb\u7684\u5b89\u88c5\u548c\u5e38\u7528\u914d\u7f6e\u9879\u7684\u542b\u4e49"},"content":{"rendered":"<blockquote><p>\n  \u6d4b\u8bd5\u73af\u5883\u4e3acentos7\u7cfb\u7edf,mongodb\u7248\u672c\u4e3a4.0\n<\/p><\/blockquote>\n<h5>\u5b89\u88c5<\/h5>\n<ul>\n<li>\u7981\u7528\u5927\u5185\u5b58\u9875\u9762<\/li>\n<\/ul>\n<pre><code class=\"\">echo \"never\" &gt; \/sys\/kernel\/mm\/transparent_hugepage\/enabled\necho \"never\" &gt;  \/sys\/kernel\/mm\/transparent_hugepage\/defrag\n<\/code><\/pre>\n<ul>\n<li>\u914d\u7f6eyum\u6e90\u5e76\u5b89\u88c5\u542f\u52a8<\/li>\n<\/ul>\n<pre><code class=\"\">cat &gt; \/etc\/yum.repos.d\/mongodb-org-4.0.repo &lt;&lt;EOF\n[mongodb-org-4.0]\nname=MongoDB Repository\nbaseurl=https:\/\/repo.mongodb.org\/yum\/redhat\/\\$releasever\/mongodb-org\/4.0\/x86_64\/\ngpgcheck=1\nenabled=1\ngpgkey=https:\/\/www.mongodb.org\/static\/pgp\/server-4.0.asc\nEOF\nyum install -y mongodb-org\nsystemctl start mongod\nsystemctl enable mongod\n<\/code><\/pre>\n<h5>&#8216;\/etc\/mongod.conf&#8217;\u5e38\u7528\u914d\u7f6e\u9879\u7684\u542b\u4e49<\/h5>\n<ul>\n<li>\u7cfb\u7edf\u65e5\u5fd7<\/li>\n<\/ul>\n<pre><code class=\"\">systemLog:\n  destination: file\n  logAppend: true\n  path: \/var\/log\/mongodb\/mongod.log\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th align=\"center\">\u540d\u79f0<\/th>\n<th align=\"left\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">verbosity: 0<\/td>\n<td align=\"left\">\u65e5\u5fd7\u7ea7\u522b\uff0c0\uff1a\u9ed8\u8ba4\u503c\uff0c\u5305\u542b\u201cinfo\u201d\u4fe1\u606f\uff0c1~5\uff0c\u5373\u5927\u4e8e0\u7684\u503c\u5747\u4f1a\u5305\u542bdebug\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">quiet: true<\/td>\n<td align=\"left\">&#8220;\u5b89\u9759&#8221;\uff0c\u6b64\u65f6mongod\/mongos\u5c06\u4f1a\u5c1d\u8bd5\u51cf\u5c11\u65e5\u5fd7\u7684\u8f93\u51fa\u91cf\u3002\u4e0d\u5efa\u8bae\u5728production\u73af\u5883\u4e0b\u5f00\u542f\uff0c\u5426\u5219\u5c06\u4f1a\u5bfc\u81f4\u8ddf\u8e2a\u9519\u8bef\u6bd4\u8f83\u56f0\u96be\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">traceAllExceptions: true<\/td>\n<td align=\"left\">\u6253\u5370\u5f02\u5e38\u8be6\u7ec6\u4fe1\u606f\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">path: \/var\/log\/mongodb\/mongod.log<\/td>\n<td align=\"left\">\u65e5\u5fd7\u8def\u5f84<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">logAppend: false<\/td>\n<td align=\"left\">\u5982\u679c\u4e3atrue\uff0c\u5f53mongod\/mongos\u91cd\u542f\u540e\uff0c\u5c06\u5728\u73b0\u6709\u65e5\u5fd7\u7684\u5c3e\u90e8\u7ee7\u7eed\u6dfb\u52a0\u65e5\u5fd7\u3002\u5426\u5219\uff0c\u5c06\u4f1a\u5907\u4efd\u5f53\u524d\u65e5\u5fd7\u6587\u4ef6\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u65e5\u5fd7\u6587\u4ef6\uff1b\u9ed8\u8ba4\u4e3afalse\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">logRotate: rename<\/td>\n<td align=\"left\">\u65e5\u5fd7\u201c\u56de\u8f6c\u201d\uff0c\u9632\u6b62\u4e00\u4e2a\u65e5\u5fd7\u6587\u4ef6\u7279\u522b\u5927\uff0c\u5219\u4f7f\u7528logRotate\u6307\u4ee4\u5c06\u6587\u4ef6\u201c\u56de\u8f6c\u201d\uff0c\u53ef\u9009\u503c\uff1a1\uff09rename\uff1a\u91cd\u547d\u540d\u65e5\u5fd7\u6587\u4ef6\uff0c\u9ed8\u8ba4\u503c\u30022\uff09reopen\uff1a\u4f7f\u7528linux\u65e5\u5fd7rotate\u7279\u6027\uff0c\u5173\u95ed\u5e76\u91cd\u65b0\u6253\u5f00\u6b64\u65e5\u5fd7\u6587\u4ef6\uff0c\u53ef\u4ee5\u907f\u514d\u65e5\u5fd7\u4e22\u5931\uff0c\u4f46\u662flogAppend\u5fc5\u987b\u4e3atrue\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">destination: file<\/td>\n<td align=\"left\">\u65e5\u5fd7\u8f93\u51fa\u76ee\u7684\u5730\uff0c\u53ef\u4ee5\u6307\u5b9a\u4e3a\u201c file\u201d\u6216\u8005\u201csyslog\u201d\uff0c\u8868\u8ff0\u8f93\u51fa\u5230\u65e5\u5fd7\u6587\u4ef6\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\uff0c\u5219\u4f1a\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u4e2d\uff08standard output\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u5b58\u50a8<\/li>\n<\/ul>\n<pre><code class=\"\">storage:\n  dbPath: \/var\/lib\/mongo\n  journal:\n    enabled: true\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th align=\"center\">\u540d\u79f0<\/th>\n<th align=\"left\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">dbPath<\/td>\n<td align=\"left\">mongod\u8fdb\u7a0b\u5b58\u50a8\u6570\u636e\u76ee\u5f55\uff0c\u6b64\u914d\u7f6e\u4ec5\u5bf9mongod\u8fdb\u7a0b\u6709\u6548<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">indexBuildRetry<\/td>\n<td align=\"left\">\u5f53\u6784\u5efa\u7d22\u5f15\u65f6mongod\u610f\u5916\u5173\u95ed\uff0c\u90a3\u4e48\u518d\u6b21\u542f\u52a8\u662f\u5426\u91cd\u65b0\u6784\u5efa\u7d22\u5f15\uff1b\u7d22\u5f15\u6784\u5efa\u5931\u8d25\uff0cmongod\u91cd\u542f\u540e\u5c06\u4f1a\u5220\u9664\u5c1a\u672a\u5b8c\u6210\u7684\u7d22\u5f15\uff0c\u4f46\u662f\u5426\u91cd\u5efa\u7531\u6b64\u53c2\u6570\u51b3\u5b9a\u3002\u9ed8\u8ba4\u503c\u4e3atrue.<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">repairPath<\/td>\n<td align=\"left\">\u914d\u5408&#8211;repair\u542f\u52a8\u547d\u4ee4\u53c2\u6570\uff0c\u5728repair\u671f\u95f4\u4f7f\u7528\u6b64\u76ee\u5f55\u5b58\u50a8\u4e34\u65f6\u6570\u636e\uff0crepair\u7ed3\u675f\u540e\u6b64\u76ee\u5f55\u4e0b\u6570\u636e\u5c06\u88ab\u5220\u9664\uff0c\u6b64\u914d\u7f6e\u4ec5\u5bf9mongod\u8fdb\u7a0b\u6709\u6548\u3002\u4e0d\u5efa\u8bae\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u914d\u7f6e\uff0c\u800c\u662f\u4f7f\u7528mongod\u542f\u52a8\u547d\u4ee4\u6307\u5b9a\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">engine<\/td>\n<td align=\"left\">\u5b58\u50a8\u5f15\u64ce\u7c7b\u578b\uff0cmongodb 3.0\u4e4b\u540e\u652f\u6301\u201cmmapv1\u201d\u3001\u201cwiredTiger\u201d\u4e24\u79cd\u5f15\u64ce\uff0c\u9ed8\u8ba4\u503c\u4e3a\u201cmmapv1\u201d\uff1b\u5b98\u65b9\u5ba3\u79f0wiredTiger\u5f15\u64ce\u66f4\u52a0\u4f18\u79c0\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">journal<\/td>\n<td align=\"left\">\u662f\u5426\u5f00\u542fjournal\u65e5\u5fd7\u6301\u4e45\u5b58\u50a8\uff0cjournal\u65e5\u5fd7\u7528\u6765\u6570\u636e\u6062\u590d\uff0c\u662fmongod\u6700\u57fa\u7840\u7684\u7279\u6027\uff0c\u901a\u5e38\u7528\u4e8e\u6545\u969c\u6062\u590d\u300264\u4f4d\u7cfb\u7edf\u9ed8\u8ba4\u4e3atrue\uff0c32\u4f4d\u9ed8\u8ba4\u4e3afalse\uff0c\u5efa\u8bae\u5f00\u542f\uff0c\u4ec5\u5bf9mongod\u8fdb\u7a0b\u6709\u6548\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">directoryPerDB<\/td>\n<td align=\"left\">\u662f\u5426\u5c06\u4e0d\u540cDB\u7684\u6570\u636e\u5b58\u50a8\u5728\u4e0d\u540c\u7684\u76ee\u5f55\u4e2d \u9ed8\u8ba4\u503c\u4e3afalse<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">syncPeriodSecs<\/td>\n<td align=\"left\">mongod\u4f7f\u7528fsync\u64cd\u4f5c\u5c06\u6570\u636eflush\u5230\u78c1\u76d8\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u9ed8\u8ba4\u503c\u4e3a60\uff08\u5355\u4f4d\uff1a\u79d2\uff09\u5f3a\u70c8\u5efa\u8bae\u4e0d\u8981\u4fee\u6539\u6b64\u503c mongod\u5c06\u53d8\u66f4\u7684\u6570\u636e\u5199\u5165journal\u540e\u518d\u5199\u5165\u5185\u5b58\uff0c\u5e76\u95f4\u6b47\u6027\u7684\u5c06\u5185\u5b58\u6570\u636eflush\u5230\u78c1\u76d8\u4e2d\uff0c\u5373\u5ef6\u8fdf\u5199\u5165\u78c1\u76d8\uff0c\u6709\u6548\u63d0\u5347\u78c1\u76d8\u6548\u7387<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">mmapv1<\/td>\n<td align=\"left\">\u4ec5\u5bf9MMAPV1\u5f15\u64ce<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">quota:<\/td>\n<td align=\"left\">enforced:false  \u914d\u989d\u7ba1\u7406\uff0c\u662f\u5426\u9650\u5236\u6bcf\u4e2aDB\u6240\u80fd\u6301\u6709\u7684\u6700\u5927\u6587\u4ef6\u6570\u91cf \u9ed8\u8ba4\u503c\u4e3afalse;maxFilesPerDB:8  \u5982\u679cenforce\u5f00\u542f\uff0c\u6bcf\u4e2aDB\u6240\u6301\u6709\u7684\u5b58\u50a8\u6587\u4ef6\u4e0d\u4f1a\u8d85\u8fc7\u6b64\u9600\u503c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">smallFiles: false<\/td>\n<td align=\"left\">\u662f\u5426\u4f7f\u7528\u5c0f\u6587\u4ef6\u5b58\u50a8\u6570\u636e\uff1b\u5982\u679c\u6b64\u503c\u4e3atrue mongod\u5c06\u4f1a\u9650\u5b9a\u6bcf\u4e2a\u6570\u636e\u6587\u4ef6\u7684\u5927\u5c0f\u4e3a512M\uff08\u9ed8\u8ba4\u6700\u5927\u4e3a2G\uff09\uff0cjournal\u964d\u4f4e\u5230128M\uff08\u9ed8\u8ba4\u4e3a1G\uff09\u3002\u5982\u679cDB\u7684\u6570\u636e\u91cf\u8f83\u5927\uff0c\u5c06\u4f1a\u5bfc\u81f4\u6bcf\u4e2aDB\u521b\u5efa\u5927\u91cf\u7684\u5c0f\u6587\u4ef6\uff0c\u8fd9\u5bf9\u6027\u80fd\u6709\u4e00\u5b9a\u7684\u5f71\u54cd\u3002\u5728production\u73af\u5883\u4e0b\uff0c\u4e0d\u5efa\u8bae\u4fee\u6539\u6b64\u503c\uff0c\u5728\u6d4b\u8bd5\u65f6\u53ef\u4ee5\u8bbe\u7f6e\u4e3atrue\uff0c\u8282\u7ea6\u78c1\u76d8\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u8fdb\u7a0b\u7ba1\u7406<\/li>\n<\/ul>\n<pre><code class=\"\">processManagement:\n  fork: true  # fork and run in background\n  pidFilePath: \/var\/run\/mongodb\/mongod.pid  # location of pidfile\n  timeZoneInfo: \/usr\/share\/zoneinfo\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th align=\"center\">\u540d\u79f0<\/th>\n<th align=\"left\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">fork<\/td>\n<td align=\"left\">\u8fd0\u884c\u5728\u540e\u53f0<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">pidFilePath<\/td>\n<td align=\"left\">PID\u6587\u4ef6\u8def\u5f84<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u7f51\u7edc\u63a5\u53e3<\/li>\n<\/ul>\n<pre><code class=\"\">net:\n  port: 27017\n  bindIp: 127.0.0.1\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th align=\"center\">\u540d\u79f0<\/th>\n<th align=\"left\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">port<\/td>\n<td align=\"left\">\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">bindIp<\/td>\n<td align=\"left\">\u7ed1\u5b9a\u5916\u7f51IP \u591a\u4e2a\u7528\u9017\u53f7\u5206\u9694<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">maxIncomingConnections<\/td>\n<td align=\"left\">\u8fdb\u7a0b\u5141\u8bb8\u7684\u6700\u5927\u8fde\u63a5\u6570 \u9ed8\u8ba4\u503c\u4e3a65536<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">wireObjectCheck<\/td>\n<td align=\"left\">\u5f53\u5ba2\u6237\u7aef\u5199\u5165\u6570\u636e\u65f6 \u68c0\u6d4b\u6570\u636e\u7684\u6709\u6548\u6027(BSON) \u9ed8\u8ba4\u503c\u4e3atrue<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">ipv6<\/td>\n<td align=\"left\">\u9ed8\u8ba4\u503c\u4e3afalse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u5b89\u5168<\/li>\n<\/ul>\n<pre><code class=\"\">security:\n    authorization: enabled\n    clusterAuthMode: keyFile\n    keyFile: keyfile_path\n    javascriptEnabled: true\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th align=\"center\">\u540d\u79f0<\/th>\n<th align=\"left\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">authorization<\/td>\n<td align=\"left\">disabled\u6216\u8005enabled\uff0c\u4ec5\u5bf9mongod\u6709\u6548\uff1b\u8868\u793a\u662f\u5426\u5f00\u542f\u7528\u6237\u8bbf\u95ee\u63a7\u5236\uff08Access Control\uff09\uff0c\u5373\u5ba2\u6237\u7aef\u53ef\u4ee5\u901a\u8fc7\u7528\u6237\u540d\u548c\u5bc6\u7801\u8ba4\u8bc1\u7684\u65b9\u5f0f\u8bbf\u95ee\u7cfb\u7edf\u7684\u6570\u636e\uff0c\u9ed8\u8ba4\u4e3a\u201cdisabled\u201d\uff0c\u5373\u5ba2\u6237\u7aef\u4e0d\u9700\u8981\u5bc6\u7801\u5373\u53ef\u8bbf\u95ee\u6570\u636e\u5e93\u6570\u636e\u3002\uff08\u9650\u5b9a\u5ba2\u6237\u7aef\u4e0emongod\u3001mongos\u7684\u8ba4\u8bc1\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">clusterAuthMode<\/td>\n<td align=\"left\">\u96c6\u7fa4\u4e2dmembers\u4e4b\u95f4\u7684\u8ba4\u8bc1\u6a21\u5f0f\uff0c\u53ef\u9009\u503c\u4e3a\u201ckeyFile\u201d\u3001\u201csendKeyFile\u201d\u3001\u201csendX509\u201d\u3001\u201cx509\u201d\uff0c\u5bf9mongod\/mongos\u6709\u6548\uff1b\u9ed8\u8ba4\u503c\u4e3a\u201ckeyFile\u201d\uff0cmongodb\u5b98\u65b9\u63a8\u8350\u4f7f\u7528x509\uff0c\u4e0d\u8fc7\u6211\u4e2a\u4eba\u89c9\u5f97\u8fd8\u662fkeyFile\u6bd4\u8f83\u6613\u4e8e\u5b66\u4e60\u548c\u4f7f\u7528\u3002\u4e0d\u8fc73.0\u7248\u672c\u4e2d\uff0cmongodb\u589e\u52a0\u4e86\u5bf9TLS\/SSL\u7684\u652f\u6301\uff0c\u5982\u679c\u53ef\u4ee5\u7684\u8bdd\uff0c\u5efa\u8bae\u4f7f\u7528SSL\u76f8\u5173\u7684\u914d\u7f6e\u6765\u8ba4\u8bc1\u96c6\u7fa4\u7684member\uff0c\u6b64\u6587\u5c06\u4e0d\u518d\u4ecb\u7ecd\u3002\uff08\u9650\u5b9a\u96c6\u7fa4\u4e2dmembers\u4e4b\u95f4\u7684\u8ba4\u8bc1\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">keyFile<\/td>\n<td align=\"left\">\u5f53clusterAuthMode\u4e3a\u201ckeyFile\u201d\u65f6\uff0c\u6b64\u53c2\u6570\u6307\u5b9akeyfile\u7684\u4f4d\u7f6e\uff0cmongodb\u9700\u8981\u6709\u8bbf\u95ee\u6b64\u6587\u4ef6\u7684\u6743\u9650\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">javascriptEnabled<\/td>\n<td align=\"left\">true\u6216\u8005false\uff0c\u9ed8\u8ba4\u4e3atrue\uff0c\u4ec5\u5bf9mongod\u6709\u6548\uff1b\u8868\u793a\u662f\u5426\u5173\u95edserver\u7aef\u7684javascript\u529f\u80fd\uff0c\u5c31\u662f\u662f\u5426\u5141\u8bb8mongod\u4e0a\u6267\u884cjavascript\u811a\u672c\uff0c\u5982\u679c\u4e3afalse\uff0c\u90a3\u4e48mapreduce\u3001group\u547d\u4ee4\u7b49\u5c06\u65e0\u6cd5\u4f7f\u7528\uff0c\u56e0\u4e3a\u5b83\u4eec\u9700\u8981\u5728mongod\u4e0a\u6267\u884cjavascript\u811a\u672c\u65b9\u6cd5\u3002\u5982\u679c\u4f60\u7684\u5e94\u7528\u4e2d\u6ca1\u6709mapreduce\u7b49\u64cd\u4f5c\u7684\u9700\u6c42\uff0c\u4e3a\u4e86\u5b89\u5168\u8d77\u89c1\uff0c\u53ef\u4ee5\u5173\u95edjavascript\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>\u4e00\u4e2aconf\u914d\u7f6e\u793a\u4f8b<\/h5>\n<pre><code class=\"\">systemLog:\n    quiet: false\n    path: \/data\/mongodb\/logs\/mongod.log\n    logAppend: false\n    destination: file\nprocessManagement:\n    fork: true\n    pidFilePath: \/data\/mongodb\/mongod.pid\nnet:\n    bindIp: 127.0.0.1\n    port: 27017\n    maxIncomingConnections: 65536\n    wireObjectCheck: true\n    ipv6: false \nstorage:\n    dbPath: \/var\/lib\/mongo\n    indexBuildRetry: true\n    journal:\n        enabled: true\n    directoryPerDB: false\n    engine: mmapv1\n    syncPeriodSecs: 60 \n    mmapv1:\n        quota:\n            enforced: false\n            maxFilesPerDB: 8\n        smallFiles: true\n        journal:\n            commitIntervalMs: 100\n    wiredTiger:\n        engineConfig:\n            cacheSizeGB: 8\n            journalCompressor: snappy\n            directoryForIndexes: false\n        collectionConfig:\n            blockCompressor: snappy\n        indexConfig:\n            prefixCompression: true\noperationProfiling:\n    slowOpThresholdMs: 100\n    mode: off\n<\/code><\/pre>\n<blockquote><p>\n  \u53c2\u8003\u6587\u7ae0\uff1a<br \/>\n  https:\/\/docs.mongodb.com\/manual\/reference\/configuration-options\/index.html<br \/>\n  https:\/\/www.jianshu.com\/p\/f9f1454f251f\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u6d4b\u8bd5\u73af\u5883\u4e3acentos7\u7cfb\u7edf,mongodb\u7248\u672c\u4e3a4.0 \u5b89\u88c5 \u7981\u7528\u5927\u5185\u5b58\u9875\u9762 echo &#8220;never&#8221; &#038;g [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,25,4],"tags":[],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-linux","category-mongodb","category-database"],"_links":{"self":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=305"}],"version-history":[{"count":19,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":324,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions\/324"}],"wp:attachment":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}