{"id":59152,"date":"2026-01-13T12:41:00","date_gmt":"2026-01-13T04:41:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/59152.html"},"modified":"2026-01-13T12:41:00","modified_gmt":"2026-01-13T04:41:00","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-rhel-8-%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e9%83%a8%e7%bd%b2%e5%b9%b6%e4%bc%98%e5%8c%96%e9%ab%98%e5%b9%b6%e5%8f%91-mongodb-%e5%88%86%e7%89%87%e9%9b%86%e7%be%a4%ef%bc%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/59152.html","title":{"rendered":"\u5982\u4f55\u5728 RHEL 8 \u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u5e76\u4f18\u5316\u9ad8\u5e76\u53d1 MongoDB \u5206\u7247\u96c6\u7fa4\uff0c\u652f\u6301\u5927\u89c4\u6a21\u6570\u636e\u5b58\u50a8\u4e0e\u8bbf\u95ee\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113044058-6965ccdaa5746.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5982\u4f55\u5728 Red\u202fHat Enterprise Linux\u202f8 (RHEL\u202f8) \u73af\u5883\u4e0b\u90e8\u7f72\u3001\u914d\u7f6e\u3001\u4f18\u5316\u4e00\u4e2a \u9ad8\u5e76\u53d1\u3001\u53ef\u6a2a\u5411\u6269\u5c55\u7684 MongoDB \u5206\u7247\u96c6\u7fa4\u3002\u5185\u5bb9\u6db5\u76d6\u786c\u4ef6\u9009\u578b\u3001\u64cd\u4f5c\u7cfb\u7edf\u5c42\u9762\u4f18\u5316\u3001MongoDB \u67b6\u6784\u7ec4\u4ef6\u90e8\u7f72\u3001\u5206\u7247\u4e0e\u526f\u672c\u96c6\u914d\u7f6e\u3001\u6027\u80fd\u8c03\u4f18\u4ee5\u53ca\u57fa\u7840\u6027\u80fd\u8bc4\u4f30\u6570\u636e\u793a\u4f8b&#xff0c;A5IDC\u529b\u6c42\u4e3a\u4f01\u4e1a\u7ea7\u6570\u636e\u5e93\u67b6\u6784\u5e08\u4e0e\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u63d0\u4f9b\u5168\u9762\u5b9e\u6218\u6307\u5357\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u67b6\u6784\u4e0e\u5e94\u7528\u573a\u666f\u6982\u89c8<\/h3>\n<h4>1.1 \u4ec0\u4e48\u662f MongoDB \u5206\u7247\u96c6\u7fa4<\/h4>\n<p>MongoDB \u5206\u7247 (Sharding) \u662f\u4e00\u79cd \u6c34\u5e73\u6269\u5c55\u6280\u672f&#xff0c;\u901a\u8fc7\u5c06\u6570\u636e\u5206\u5e03\u5230\u591a\u53f0\u670d\u52a1\u5668 (Shard) \u4e0a&#xff0c;\u4f7f\u6570\u636e\u5e93\u80fd\u591f\u5904\u7406\u8d85\u5927\u6570\u636e\u96c6\u548c\u9ad8\u541e\u5410\u91cf\u7684\u64cd\u4f5c\u3002\u5206\u7247\u96c6\u7fa4\u901a\u5e38\u7531\u4e09\u7c7b\u7ec4\u4ef6\u7ec4\u6210&#xff1a;<\/p>\n<ul>\n<li>Config Server&#xff1a;\u4fdd\u5b58\u96c6\u7fa4\u5143\u6570\u636e&#xff1b;<\/li>\n<li>Shard Servers&#xff1a;\u6309\u5206\u7247\u952e\u5b58\u50a8\u5b9e\u9645\u6570\u636e&#xff0c;\u901a\u5e38\u6bcf\u4e2a Shard \u662f\u4e00\u4e2a\u526f\u672c\u96c6&#xff1b;<\/li>\n<li>Mongos Routers&#xff1a;\u5bf9\u5916\u63d0\u4f9b\u7edf\u4e00\u8bbf\u95ee\u5165\u53e3&#xff0c;\u5c06\u5ba2\u6237\u7aef\u8bf7\u6c42\u8def\u7531\u5230\u5bf9\u5e94 Shard&#xff1b;<\/li>\n<\/ul>\n<p>\u9ad8\u5e76\u53d1\u8bbf\u95ee\u573a\u666f\u5178\u578b\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u6d77\u91cf\u65e5\u5fd7\u548c\u4e8b\u4ef6\u91c7\u96c6\u7cfb\u7edf<\/li>\n<li>\u7535\u5546\u5b9e\u65f6\u4ea4\u6613\u4e0e\u7528\u6237\u884c\u4e3a\u5b58\u50a8<\/li>\n<li>\u7269\u8054\u7f51 (IoT) \u6570\u636e\u6d41\u6c34\u5b58\u50a8<\/li>\n<li>\u5b9e\u65f6\u5206\u6790\u4e0e OLTP \u7cfb\u7edf<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e8c\u3001\u786c\u4ef6\u9009\u578b\u4e0e RHEL\u202f8 \u7cfb\u7edf\u51c6\u5907<\/h3>\n<h4>2.1 A5\u6570\u636e\u5efa\u8bae\u7684\u9999\u6e2f\u670d\u52a1\u5668www.a5idc.com\u786c\u4ef6\u89c4\u683c<\/h4>\n<p>\u786c\u4ef6\u914d\u7f6e\u5e94\u57fa\u4e8e\u9884\u4f30\u7684\u5e76\u53d1\u91cf\u3001\u6570\u636e\u5bb9\u91cf\u548c SLA \u76ee\u6807\u5236\u5b9a&#xff0c;\u4e0b\u8868\u4e3a\u5178\u578b\u5206\u7247\u8282\u70b9\u7684\u53c2\u8003\u89c4\u683c&#xff1a;<\/p>\n<table>\n<tr>\u8282\u70b9\u7c7b\u578bCPU\u5185\u5b58\u5b58\u50a8\u7f51\u7edc<\/tr>\n<tbody>\n<tr>\n<td>Config Server&#xff08;x3&#xff09;<\/td>\n<td>4\u202fCores<\/td>\n<td>16\u202fGB<\/td>\n<td>2\u00d7500\u202fGB\u202fSSD (RAID1)<\/td>\n<td>10\u202fGbE<\/td>\n<\/tr>\n<tr>\n<td>Mongos Router (x2\u20134)<\/td>\n<td>8\u202fCores<\/td>\n<td>32\u202fGB<\/td>\n<td>2\u00d7500\u202fGB\u202fSSD<\/td>\n<td>10\u202fGbE<\/td>\n<\/tr>\n<tr>\n<td>Shard Replica Set Member (x3 per Shard)<\/td>\n<td>16\u202fCores<\/td>\n<td>64\u202fGB<\/td>\n<td>4\u00d72\u202fTB\u202fNVMe (RAID10)<\/td>\n<td>10\u202fGbE<\/td>\n<\/tr>\n<tr>\n<td>\u76d1\u63a7 \/ \u5907\u4efd\u8282\u70b9<\/td>\n<td>8\u202fCores<\/td>\n<td>32\u202fGB<\/td>\n<td>1\u20132\u202fTB\u202fSSD<\/td>\n<td>10\u202fGbE<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>Shard \u8282\u70b9\u91cd\u70b9\u8003\u8651 \u5185\u5b58\u4e0e\u5b58\u50a8 I\/O \u6027\u80fd&#xff0c;\u5185\u5b58\u9700\u5c3d\u53ef\u80fd\u5bb9\u7eb3\u5de5\u4f5c\u96c6 (indexes &#043; \u70ed\u6570\u636e)\u3002Official \u6587\u6863\u5f3a\u8c03\u5f53\u5de5\u4f5c\u96c6\u5927\u5c0f\u5927\u4e8e\u670d\u52a1\u5668 RAM \u65f6&#xff0c;\u78c1\u76d8 I\/O \u5c06\u6210\u4e3a\u74f6\u9888&#xff0c;\u5e94\u4f18\u5148\u6269\u5c55\u5185\u5b58\u3002<\/li>\n<li>\u91c7\u7528 SSD \/ NVMe \u63d0\u5347\u5199\u5165\u548c\u67e5\u8be2\u54cd\u5e94\u6027\u80fd\u3002<\/li>\n<li>\u7f51\u7edc\u5efa\u8bae\u4f7f\u7528 10\u202fGbE \u6216\u66f4\u9ad8\u5e26\u5bbd\u4ee5\u51cf\u5c11\u8282\u70b9\u95f4\u901a\u4fe1\u5ef6\u8fdf\u3002<\/li>\n<\/ul>\n<h4>2.2 RHEL\u202f8 \u7cfb\u7edf\u8c03\u4f18<\/h4>\n<p>\u5728 RHEL\u202f8 \u4e0a\u90e8\u7f72 MongoDB \u9700\u5173\u95ed SELinux \u6216\u914d\u7f6e\u4e3a permissive&#xff0c;\u4ee5\u907f\u514d\u901a\u4fe1\u53d7\u963b&#xff0c;\u786e\u4fdd\u9632\u706b\u5899\u5f00\u653e\u8282\u70b9\u95f4\u8bbf\u95ee\u7aef\u53e3&#xff08;27017\/27019\/27020 \u9ed8\u8ba4\u7aef\u53e3&#xff09;\u3002<\/p>\n<p>\u7cfb\u7edf\u5c42\u9762\u4f18\u5316\u5efa\u8bae\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5173\u95ed SELinux<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">sed<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#039;s\/^SELINUX&#061;enforcing\/SELINUX&#061;permissive\/&#039;<\/span> \/etc\/selinux\/config<br \/>\n<span class=\"token function\">sudo<\/span> setenforce <span class=\"token number\">0<\/span><\/p>\n<p><span class=\"token comment\"># \u8c03\u6574\u6587\u4ef6\u53e5\u67c4\u9650\u5236<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> \/etc\/security\/limits.d\/mongodb.conf <span class=\"token operator\">&lt;&lt;<\/span><span class=\"token string\">EOF<br \/>\nmongod   soft   nofile  64000<br \/>\nmongod   hard   nofile  64000<br \/>\nEOF<\/span><\/p>\n<p><span class=\"token comment\"># \u5173\u95ed swap<\/span><br \/>\n<span class=\"token function\">sudo<\/span> swapoff <span class=\"token parameter variable\">-a<\/span><\/p>\n<p>RHEL\u202f8 \u4e0e MongoDB \u517c\u5bb9\u6027&#xff1a;<\/p>\n<p>\u5b98\u65b9\u6587\u6863\u6307\u51fa MongoDB \u652f\u6301\u5728 RHEL\u202f8 \u4e0a\u8fd0\u884c&#xff0c;\u5e76\u53ef\u517c\u5bb9 Rocky\u202fLinux\/AlmaLinux \u7b49\u4e0e RHEL\u202f8 ABI \u4fdd\u6301\u4e00\u81f4\u7684\u53d1\u884c\u7248\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001MongoDB \u5206\u7247\u96c6\u7fa4\u90e8\u7f72\u6d41\u7a0b<\/h3>\n<p>\u4ee5\u4e0b\u793a\u4f8b\u914d\u7f6e\u57fa\u4e8e MongoDB \u793e\u533a\u7248 7.x\/8.x \u6700\u65b0\u7a33\u5b9a\u7248\u672c\u3002<\/p>\n<h4>3.1 \u5b89\u88c5 MongoDB<\/h4>\n<p>\u5728\u6bcf\u53f0\u670d\u52a1\u5668\u4e0a\u6267\u884c&#xff1a;<\/p>\n<p><span class=\"token function\">cat<\/span> <span class=\"token operator\">&lt;&lt;<\/span><span class=\"token string\">EOF<span class=\"token bash punctuation\"> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> \/etc\/yum.repos.d\/mongodb-org.repo<\/span><br \/>\n[mongodb-org]<br \/>\nname&#061;MongoDB Repository<br \/>\nbaseurl&#061;https:\/\/repo.mongodb.org\/yum\/redhat\/\\\\<span class=\"token variable\">$releasever<\/span>\/mongodb-org\/7.0\/x86_64\/<br \/>\ngpgcheck&#061;1<br \/>\nenabled&#061;1<br \/>\ngpgkey&#061;https:\/\/www.mongodb.org\/static\/pgp\/server-7.0.asc<br \/>\nEOF<\/span><\/p>\n<p><span class=\"token function\">sudo<\/span> dnf <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> mongodb-org<\/p>\n<h4>3.2 \u914d\u7f6e Config Server \u526f\u672c\u96c6<\/h4>\n<p>\u521b\u5efa\u914d\u7f6e\u6587\u4ef6 \/etc\/mongod-config.conf&#xff1a;<\/p>\n<p><span class=\"token key atrule\">storage<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">dbPath<\/span><span class=\"token punctuation\">:<\/span> \/var\/lib\/mongo\/config<br \/>\n  <span class=\"token key atrule\">journal<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">enabled<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n<span class=\"token key atrule\">systemLog<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">destination<\/span><span class=\"token punctuation\">:<\/span> file<br \/>\n  <span class=\"token key atrule\">path<\/span><span class=\"token punctuation\">:<\/span> \/var\/log\/mongodb\/config.log<br \/>\n<span class=\"token key atrule\">processManagement<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">fork<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n<span class=\"token key atrule\">net<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">bindIp<\/span><span class=\"token punctuation\">:<\/span> 0.0.0.0<br \/>\n  <span class=\"token key atrule\">port<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">27019<\/span><br \/>\n<span class=\"token key atrule\">replication<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">replSetName<\/span><span class=\"token punctuation\">:<\/span> configRepl<br \/>\n<span class=\"token key atrule\">sharding<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">clusterRole<\/span><span class=\"token punctuation\">:<\/span> configsvr<\/p>\n<p>\u542f\u52a8\u5e76\u521d\u59cb\u5316&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> mongod <span class=\"token parameter variable\">-f<\/span> \/etc\/mongod-config.conf<br \/>\nmongo <span class=\"token parameter variable\">&#8211;port<\/span> <span class=\"token number\">27019<\/span> <span class=\"token parameter variable\">&#8211;eval<\/span> <span class=\"token string\">&#039;rs.initiate()&#039;<\/span><\/p>\n<h4>3.3 \u914d\u7f6e Shard \u526f\u672c\u96c6&#xff08;\u4ee5 shard1 \u4e3a\u4f8b&#xff09;<\/h4>\n<p>\/etc\/mongod-shard1.conf&#xff1a;<\/p>\n<p><span class=\"token key atrule\">storage<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">dbPath<\/span><span class=\"token punctuation\">:<\/span> \/var\/lib\/mongo\/shard1<br \/>\n  <span class=\"token key atrule\">journal<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">enabled<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n<span class=\"token key atrule\">systemLog<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">path<\/span><span class=\"token punctuation\">:<\/span> \/var\/log\/mongodb\/shard1.log<br \/>\n<span class=\"token key atrule\">processManagement<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">fork<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n<span class=\"token key atrule\">net<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">bindIp<\/span><span class=\"token punctuation\">:<\/span> 0.0.0.0<br \/>\n  <span class=\"token key atrule\">port<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">27017<\/span><br \/>\n<span class=\"token key atrule\">replication<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">replSetName<\/span><span class=\"token punctuation\">:<\/span> shard1Repl<\/p>\n<p>\u521d\u59cb\u5316\u96c6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> mongod <span class=\"token parameter variable\">-f<\/span> \/etc\/mongod-shard1.conf<br \/>\nmongo <span class=\"token parameter variable\">&#8211;port<\/span> <span class=\"token number\">27017<\/span> <span class=\"token parameter variable\">&#8211;eval<\/span> <span class=\"token string\">&#039;rs.initiate()&#039;<\/span><\/p>\n<p>\u5bf9\u6bcf\u4e2a Shard \u91cd\u590d\u4e0a\u9762\u6b65\u9aa4\u3002<\/p>\n<h4>3.4 \u542f\u52a8 Mongos \u8def\u7531\u8fdb\u7a0b<\/h4>\n<p>\u914d\u7f6e \/etc\/mongos.conf&#xff1a;<\/p>\n<p><span class=\"token key atrule\">systemLog<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">path<\/span><span class=\"token punctuation\">:<\/span> \/var\/log\/mongodb\/mongos.log<br \/>\n<span class=\"token key atrule\">processManagement<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">fork<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n<span class=\"token key atrule\">net<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">bindIp<\/span><span class=\"token punctuation\">:<\/span> 0.0.0.0<br \/>\n  <span class=\"token key atrule\">port<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">27020<\/span><br \/>\n<span class=\"token key atrule\">sharding<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">configDB<\/span><span class=\"token punctuation\">:<\/span> configRepl\/&lt;config1<span class=\"token punctuation\">&gt;<\/span><span class=\"token punctuation\">:<\/span><span class=\"token number\">27019<\/span><span class=\"token punctuation\">,<\/span>&lt;config2<span class=\"token punctuation\">&gt;<\/span><span class=\"token punctuation\">:<\/span><span class=\"token number\">27019<\/span><span class=\"token punctuation\">,<\/span>&lt;config3<span class=\"token punctuation\">&gt;<\/span><span class=\"token punctuation\">:<\/span><span class=\"token number\">27019<\/span><\/p>\n<p>\u542f\u52a8&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> mongos <span class=\"token parameter variable\">-f<\/span> \/etc\/mongos.conf<\/p>\n<h4>3.5 \u5c06 Shards \u6dfb\u52a0\u5230\u96c6\u7fa4<\/h4>\n<p>mongo <span class=\"token operator\">&#8212;<\/span>port <span class=\"token number\">27020<\/span><br \/>\nsh<span class=\"token punctuation\">.<\/span><span class=\"token function\">addShard<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;shard1Repl\/&lt;host1&gt;:27017,&lt;host2&gt;:27017,&lt;host3&gt;:27017&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\nsh<span class=\"token punctuation\">.<\/span><span class=\"token function\">addShard<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;shard2Repl\/&lt;host4&gt;:27017,&lt;host5&gt;:27017,&lt;host6&gt;:27017&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u542f\u7528\u6570\u636e\u5e93\u548c\u96c6\u5408\u5206\u7247&#xff1a;<\/p>\n<p>sh<span class=\"token punctuation\">.<\/span><span class=\"token function\">enableSharding<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;prodDB&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\nsh<span class=\"token punctuation\">.<\/span><span class=\"token function\">shardCollection<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;prodDB.orders&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;customerId&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;hashed&#034;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u9009\u62e9\u5408\u9002\u7684 \u5206\u7247\u952e (Shard Key) \u662f\u9ad8\u6027\u80fd\u5206\u7247\u96c6\u7fa4\u7684\u6838\u5fc3&#xff0c;\u5efa\u8bae\u6839\u636e\u8bbf\u95ee\u6a21\u5f0f\u9009\u62e9\u70ed\u70b9\u4f4e\u3001\u57fa\u6570\u9ad8\u7684\u5b57\u6bb5\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001\u6027\u80fd\u4f18\u5316\u4e0e\u76d1\u63a7\u7b56\u7565<\/h3>\n<h4>4.1 \u7d22\u5f15\u4e0e\u67e5\u8be2\u4f18\u5316<\/h4>\n<ul>\n<li>\u786e\u4fdd\u5e38\u7528\u67e5\u8be2\u5b57\u6bb5\u5efa\u7acb \u8986\u76d6\u7d22\u5f15&#xff1b;<\/li>\n<li>\u907f\u514d\u672a\u547d\u4e2d\u7d22\u5f15\u5bfc\u81f4\u5168\u8868\u626b\u63cf&#xff1b;<\/li>\n<li>\u5b9a\u671f\u4f7f\u7528 explain() \u5206\u6790\u6162\u67e5\u8be2\u3002<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>db<span class=\"token punctuation\">.<\/span>orders<span class=\"token punctuation\">.<\/span><span class=\"token function\">createIndex<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">customerId<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">orderDate<\/span><span class=\"token operator\">:<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><br \/>\ndb<span class=\"token punctuation\">.<\/span>orders<span class=\"token punctuation\">.<\/span><span class=\"token function\">find<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">customerId<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">12345<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">explain<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;executionStats&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h4>4.2 \u64cd\u4f5c\u7cfb\u7edf\u4e0e MongoDB \u5185\u90e8\u53c2\u6570<\/h4>\n<h5>\u5185\u6838\u53c2\u6570\u4f18\u5316\u793a\u4f8b<\/h5>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> \/etc\/sysctl.d\/99-mongodb.conf <span class=\"token operator\">&lt;&lt;<\/span><span class=\"token string\">EOF<br \/>\nvm.swappiness &#061; 1<br \/>\nfs.file-max &#061; 2000000<br \/>\nnet.core.somaxconn &#061; 4096<br \/>\nEOF<\/span><\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">sysctl<\/span> <span class=\"token parameter variable\">&#8211;system<\/span><\/p>\n<h5>WiredTiger \u5b58\u50a8\u5f15\u64ce\u4f18\u5316<\/h5>\n<p>\u5728 mongod.conf \u4e2d&#xff1a;<\/p>\n<p><span class=\"token key atrule\">storage<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">wiredTiger<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">engineConfig<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">cacheSizeGB<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">32<\/span><br \/>\n    <span class=\"token key atrule\">collectionConfig<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">blockCompressor<\/span><span class=\"token punctuation\">:<\/span> snappy<\/p>\n<p>\u6839\u636e\u5185\u5b58\u5927\u5c0f\u8c03\u6574 cacheSizeGB\u3002<\/p>\n<h4>4.3 \u76d1\u63a7\u4e0e\u62a5\u8b66<\/h4>\n<p>\u63a8\u8350\u4f7f\u7528 MongoDB Exporter &#043; Prometheus &#043; Grafana \u6784\u5efa\u76d1\u63a7\u4f53\u7cfb&#xff0c;\u91c7\u96c6\u5173\u952e\u6307\u6807&#xff1a;<\/p>\n<table>\n<tr>\u6307\u6807\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>opcounters.insert<\/td>\n<td>\u63d2\u5165\u541e\u5410<\/td>\n<\/tr>\n<tr>\n<td>conn.current<\/td>\n<td>\u5f53\u524d\u8fde\u63a5\u6570<\/td>\n<\/tr>\n<tr>\n<td>wiredTiger.cache.bytes<\/td>\n<td>\u5185\u5b58\u7f13\u5b58\u4f7f\u7528\u60c5\u51b5<\/td>\n<\/tr>\n<tr>\n<td>sharding.topologyTime<\/td>\n<td>\u5206\u7247\u62d3\u6251\u5ef6\u8fdf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e94\u3001\u57fa\u7840\u6027\u80fd\u8bc4\u4f30\u793a\u4f8b<\/h3>\n<p>\u4e0b\u8868\u4e3a\u5355\u4e2a Shard \u5728\u4e0d\u540c\u5e76\u53d1\u6c34\u5e73\u4e0b\u7684\u64cd\u4f5c\u541e\u5410\u4e0e\u5e73\u5747\u5ef6\u8fdf\u793a\u4f8b&#xff08;\u6570\u636e\u4e3a\u4eff\u771f\u6d4b\u8bd5&#xff0c;\u4ec5\u4f9b\u53c2\u8003&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u5e76\u53d1 Client \u6570\u6bcf\u79d2\u5199\u5165 (ops\/s)\u5e73\u5747\u5199\u5ef6\u8fdf (ms)\u6bcf\u79d2\u8bfb\u53d6 (ops\/s)\u5e73\u5747\u8bfb\u5ef6\u8fdf (ms)<\/tr>\n<tbody>\n<tr>\n<td>100<\/td>\n<td>15,000<\/td>\n<td>12<\/td>\n<td>28,000<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<td>500<\/td>\n<td>70,000<\/td>\n<td>35<\/td>\n<td>125,000<\/td>\n<td>22<\/td>\n<\/tr>\n<tr>\n<td>1000<\/td>\n<td>125,000<\/td>\n<td>78<\/td>\n<td>210,000<\/td>\n<td>47<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u53ef\u89c1\u901a\u8fc7\u589e\u52a0 Shard \u6570\u91cf\u4e0e\u63d0\u5347\u786c\u4ef6\u8d44\u6e90&#xff0c;\u53ef\u7ebf\u6027\u63d0\u5347\u6574\u4f53\u541e\u5410\u3002\u5b9e\u9645\u6027\u80fd\u53d7 \u67e5\u8be2\u6a21\u5f0f\u3001\u7d22\u5f15\u8bbe\u8ba1\u3001\u5206\u7247\u952e\u9009\u62e9 \u7b49\u56e0\u7d20\u5f71\u54cd\u663e\u8457\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u5b9e\u8df5\u5efa\u8bae<\/h3>\n<ul>\n<li>\u5206\u7247\u952e\u9009\u62e9\u4e0d\u5f53 \u4f1a\u5bfc\u81f4\u6570\u636e\u503e\u659c (Hot Shard)&#xff0c;\u5e94\u4f18\u5148\u8003\u8651\u9ad8\u57fa\u6570\u3001\u968f\u673a\u6027\u5f3a\u7684\u5b57\u6bb5&#xff1b;<\/li>\n<li>Config Server \u4e0d\u5efa\u8bae\u505a\u8fc7\u5927\u8d1f\u8f7d&#xff0c;\u56e0\u6b64\u4e0d\u5b9c\u5728\u5176\u4e0a\u8fd0\u884c\u4e1a\u52a1\u67e5\u8be2&#xff1b;<\/li>\n<li>Mongos \u53ef\u90e8\u7f72\u5728\u5e94\u7528\u5c42\u9644\u8fd1 \u51cf\u5c11\u7f51\u7edc\u8df3\u6570&#xff1b;<\/li>\n<li>\u526f\u672c\u96c6\u6210\u5458\u5efa\u8bae\u4f7f\u7528\u5947\u6570\u4e2a\u6295\u7968\u8282\u70b9 \u4ee5\u4f18\u5316\u4e3b\u8282\u70b9\u9009\u4e3e\u6548\u7387\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7A5\u6570\u636e\u8bb2\u89e3\u7684\u4e0a\u8ff0\u6b65\u9aa4&#xff0c;\u4f60\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u57fa\u4e8e RHEL\u202f8 \u7684 \u9ad8\u5e76\u53d1\u5206\u7247 MongoDB \u96c6\u7fa4&#xff0c;\u5b9e\u73b0\u6a2a\u5411\u6269\u5c55\u548c\u6d77\u91cf\u6570\u636e\u652f\u6301\u3002\u5173\u952e\u5728\u4e8e\u5408\u7406\u7684\u786c\u4ef6\u8bbe\u8ba1\u3001\u79d1\u5b66\u7684\u5206\u7247\u7b56\u7565\u3001\u7cfb\u7edf\u4e0e\u6570\u636e\u5e93\u5c42\u9762\u7684\u8c03\u4f18&#xff0c;\u4ee5\u53ca\u6301\u7eed\u76d1\u63a7\u4e0e\u8fed\u4ee3\u4f18\u5316\u3002MongoDB \u7684\u6a2a\u5411\u6269\u5c55\u80fd\u529b\u4f7f\u5f97\u96c6\u7fa4\u53ef\u968f\u7740\u4e1a\u52a1\u589e\u957f\u800c\u7ebf\u6027\u6269\u5c55&#xff0c;\u6ee1\u8db3\u4f01\u4e1a\u7ea7\u7684 SLA \u8981\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb858\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u5982\u4f55\u5728 Red\u202fHat Enterprise Linux\u202f8 (RHEL\u202f8) \u73af\u5883\u4e0b\u90e8\u7f72\u3001\u914d\u7f6e\u3001\u4f18\u5316\u4e00\u4e2a \u9ad8\u5e76\u53d1\u3001\u53ef\u6a2a\u5411\u6269\u5c55\u7684 MongoDB \u5206\u7247\u96c6\u7fa4\u3002\u5185\u5bb9\u6db5\u76d6\u786c\u4ef6\u9009\u578b\u3001\u64cd\u4f5c\u7cfb\u7edf\u5c42\u9762\u4f18\u5316\u3001MongoDB \u67b6\u6784\u7ec4\u4ef6\u90e8\u7f72\u3001\u5206\u7247\u4e0e\u526f\u672c\u96c6\u914d\u7f6e\u3001\u6027\u80fd\u8c03\u4f18\u4ee5\u53ca\u57fa\u7840\u6027\u80fd\u8bc4\u4f30\u6570\u636e\u793a\u4f8b\uff0cA5IDC\u529b\u6c42\u4e3a\u4f01\u4e1a\u7ea7\u6570\u636e\u5e93\u67b6\u6784\u5e08\u4e0e\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u63d0\u4f9b\u5168\u9762\u5b9e\u6218\u6307\u5357\u3002<\/p>\n","protected":false},"author":2,"featured_media":59151,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-59152","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728 RHEL 8 \u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u5e76\u4f18\u5316\u9ad8\u5e76\u53d1 MongoDB \u5206\u7247\u96c6\u7fa4\uff0c\u652f\u6301\u5927\u89c4\u6a21\u6570\u636e\u5b58\u50a8\u4e0e\u8bbf\u95ee\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\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.wsisp.com\/helps\/59152.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728 RHEL 8 \u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u5e76\u4f18\u5316\u9ad8\u5e76\u53d1 MongoDB \u5206\u7247\u96c6\u7fa4\uff0c\u652f\u6301\u5927\u89c4\u6a21\u6570\u636e\u5b58\u50a8\u4e0e\u8bbf\u95ee\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb858\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u5982\u4f55\u5728 Red\u202fHat Enterprise Linux\u202f8 (RHEL\u202f8) \u73af\u5883\u4e0b\u90e8\u7f72\u3001\u914d\u7f6e\u3001\u4f18\u5316\u4e00\u4e2a \u9ad8\u5e76\u53d1\u3001\u53ef\u6a2a\u5411\u6269\u5c55\u7684 MongoDB \u5206\u7247\u96c6\u7fa4\u3002\u5185\u5bb9\u6db5\u76d6\u786c\u4ef6\u9009\u578b\u3001\u64cd\u4f5c\u7cfb\u7edf\u5c42\u9762\u4f18\u5316\u3001MongoDB \u67b6\u6784\u7ec4\u4ef6\u90e8\u7f72\u3001\u5206\u7247\u4e0e\u526f\u672c\u96c6\u914d\u7f6e\u3001\u6027\u80fd\u8c03\u4f18\u4ee5\u53ca\u57fa\u7840\u6027\u80fd\u8bc4\u4f30\u6570\u636e\u793a\u4f8b\uff0cA5IDC\u529b\u6c42\u4e3a\u4f01\u4e1a\u7ea7\u6570\u636e\u5e93\u67b6\u6784\u5e08\u4e0e\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u63d0\u4f9b\u5168\u9762\u5b9e\u6218\u6307\u5357\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/59152.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-13T04:41:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113044058-6965ccdaa5746.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59152.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/59152.html\",\"name\":\"\u5982\u4f55\u5728 RHEL 8 \u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u5e76\u4f18\u5316\u9ad8\u5e76\u53d1 MongoDB \u5206\u7247\u96c6\u7fa4\uff0c\u652f\u6301\u5927\u89c4\u6a21\u6570\u636e\u5b58\u50a8\u4e0e\u8bbf\u95ee\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-13T04:41:00+00:00\",\"dateModified\":\"2026-01-13T04:41:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/59152.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/59152.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59152.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728 RHEL 8 \u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u5e76\u4f18\u5316\u9ad8\u5e76\u53d1 MongoDB \u5206\u7247\u96c6\u7fa4\uff0c\u652f\u6301\u5927\u89c4\u6a21\u6570\u636e\u5b58\u50a8\u4e0e\u8bbf\u95ee\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728 RHEL 8 \u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u5e76\u4f18\u5316\u9ad8\u5e76\u53d1 MongoDB \u5206\u7247\u96c6\u7fa4\uff0c\u652f\u6301\u5927\u89c4\u6a21\u6570\u636e\u5b58\u50a8\u4e0e\u8bbf\u95ee\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/59152.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728 RHEL 8 \u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u5e76\u4f18\u5316\u9ad8\u5e76\u53d1 MongoDB \u5206\u7247\u96c6\u7fa4\uff0c\u652f\u6301\u5927\u89c4\u6a21\u6570\u636e\u5b58\u50a8\u4e0e\u8bbf\u95ee\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb858\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u5982\u4f55\u5728 Red\u202fHat Enterprise Linux\u202f8 (RHEL\u202f8) \u73af\u5883\u4e0b\u90e8\u7f72\u3001\u914d\u7f6e\u3001\u4f18\u5316\u4e00\u4e2a \u9ad8\u5e76\u53d1\u3001\u53ef\u6a2a\u5411\u6269\u5c55\u7684 MongoDB \u5206\u7247\u96c6\u7fa4\u3002\u5185\u5bb9\u6db5\u76d6\u786c\u4ef6\u9009\u578b\u3001\u64cd\u4f5c\u7cfb\u7edf\u5c42\u9762\u4f18\u5316\u3001MongoDB \u67b6\u6784\u7ec4\u4ef6\u90e8\u7f72\u3001\u5206\u7247\u4e0e\u526f\u672c\u96c6\u914d\u7f6e\u3001\u6027\u80fd\u8c03\u4f18\u4ee5\u53ca\u57fa\u7840\u6027\u80fd\u8bc4\u4f30\u6570\u636e\u793a\u4f8b\uff0cA5IDC\u529b\u6c42\u4e3a\u4f01\u4e1a\u7ea7\u6570\u636e\u5e93\u67b6\u6784\u5e08\u4e0e\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u63d0\u4f9b\u5168\u9762\u5b9e\u6218\u6307\u5357\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/59152.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-13T04:41:00+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113044058-6965ccdaa5746.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/59152.html","url":"https:\/\/www.wsisp.com\/helps\/59152.html","name":"\u5982\u4f55\u5728 RHEL 8 \u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u5e76\u4f18\u5316\u9ad8\u5e76\u53d1 MongoDB \u5206\u7247\u96c6\u7fa4\uff0c\u652f\u6301\u5927\u89c4\u6a21\u6570\u636e\u5b58\u50a8\u4e0e\u8bbf\u95ee\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-13T04:41:00+00:00","dateModified":"2026-01-13T04:41:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/59152.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/59152.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/59152.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728 RHEL 8 \u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u5e76\u4f18\u5316\u9ad8\u5e76\u53d1 MongoDB \u5206\u7247\u96c6\u7fa4\uff0c\u652f\u6301\u5927\u89c4\u6a21\u6570\u636e\u5b58\u50a8\u4e0e\u8bbf\u95ee\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=59152"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59152\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/59151"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=59152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=59152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=59152"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=59152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}