{"id":29475,"date":"2022-12-18T14:56:30","date_gmt":"2023-10-14T08:10:35","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/"},"modified":"2025-08-12T14:18:31","modified_gmt":"2025-08-12T06:18:31","slug":"%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/","title":{"rendered":"\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB"},"content":{"rendered":"<h1>\u524d\u63d0\u662f\u6307\u4e00\u4e2a\u8bba\u8ff0\u6216\u8005\u884c\u52a8\u6240\u4f9d\u636e\u7684\u57fa\u672c\u6761\u4ef6\u6216\u5047\u8bbe\u30022021\u5e741\u67084\u65e5<br \/>\n&#8211; RHEL7.6\u7684AMI\uff08\u6bd4\u8f83\u65e7\uff0c8\u7cfb\u5217\u662f\u6700\u65b0\u7684\uff09<br \/>\n&#8211; MongoDB4.4.2\uff08\u6839\u636e\u672c\u6587\u5199\u4f5c\u65f6\u7684\u6700\u65b0\u7248\u672c\uff09<\/p>\n<p>\u56e0\u4e3a\u6211\u4eec\u53ea\u80fd\u4f7f\u7528\u7c7b\u4f3cEC2\u7684\u73af\u5883\uff0c\u6240\u4ee5\u8bf7\u4e0d\u8981\u6307\u8d23\u4e3a\u4ec0\u4e48\u4e0d\u4f7f\u7528Amazon DocumentDB\u3002\u8bf7\u7406\u89e3\u3002\u6216\u8005\uff0c\u7531\u4e8e\u6258\u7ba1\u670d\u52a1\u901a\u5e38\u4e0d\u652f\u6301\u6700\u65b0\u7248\u672c\uff0c\u6240\u4ee5\u5bf9\u4e8e\u90a3\u4e9b\u4e00\u5b9a\u8981\u4f7f\u7528\u6700\u65b0\u7248\u672cMongoDB\u7684\u4eba\u6765\u8bf4\uff0c\u8fd9\u7bc7\u6587\u7ae0\u53ef\u80fd\u4f1a\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<h1>\u4e0b\u8f7dMongoDB\u7684tgz\u6587\u4ef6\u5728\u4e2d\u6587\u4e2d\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u9009\u9879\u6765\u91ca\u4e49\uff1a\u4ecehttps:\/\/www.mongodb.com\/try\/download\/community\u4e0b\u8f7dMongoDB\u4f01\u4e1a\u670d\u52a1\u5668\u7684\u5b58\u6863\u6587\u4ef6\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Choose which type of deployment is best for you\uff1aOn-Premises\u3092\u9078\u629e\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">MongoDB Enterprise Server\u306e\u30a2\u30b3\u30fc\u30c7\u30a3\u30aa\u30f3\u3092\u5c55\u958b\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">version\uff1a4.4.2(current)\u3092\u9078\u629e\u3059\u308b\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u304ccurrent\u306a\u306e\u3067\u305d\u306e\u307e\u307e\uff09<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Platform\uff1aRedHat \/ CentOS 6.2+\u3092\u9078\u629e\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">package\uff1atgz\u3092\u9078\u629e\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Download\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<\/ul>\n<p>\u53ef\u4ee5\u4e0b\u8f7dmongodb-linux-x86_64-rhel62-4.4.2.tgz\u6587\u4ef6\u3002<\/p>\n<h1>2. \u542f\u52a8EC2\u5b9e\u4f8b<\/p>\n<h2>2.1. AMI: \u963f\u91cc\u6e38\u620f\u5e02\u573a\u5728\u4e1c\u4eac\u5730\u533a\u4f7f\u7528RHEL 7.6\u5728AMI\u4e0a\u8fdb\u884c\u641c\u7d22\u65f6\uff0c<\/p>\n<blockquote><p>\u7531Red Hat\u516c\u53f8\u63d0\u4f9b\u7684RHEL-7.6_HVM_GA-20190128-x86_64-0-Hourly2-GP2\u7684AMI\u662fami-00b95502a4d51a07e\u3002<\/p><\/blockquote>\n<p>\u56e0\u4e3a\u627e\u5230\u4e86\uff0c\u6240\u4ee5\u9009\u62e9\u8fd9\u4e2a\u3002<\/p>\n<h2>2.2. \u5b9e\u4f8b\u7c7b\u578bt2.micro \uff08\u5982\u679c\u53ea\u662f\u8bd5\u7528\u7684\u8bdd\uff0c\u8fd9\u4e2a\u8db3\u591f\u4e86\uff09<\/p>\n<h2>2.3. \u5b89\u5168\u7ec4\u6253\u5f00TCP\/27017 \uff08\u5982\u679c\u53ea\u662f\u8bd5\u7528\u7684\u8bdd\u4e0d\u9700\u8981\uff09<\/p>\n<h1>3. \u5b89\u88c5MongoDB<\/p>\n<h2>3.1. sftp\u8fde\u63a5\u4f7f\u7528\u79c1\u94a5\u6587\u4ef6 private.pem\uff0c\u901a\u8fc7 sftp \u534f\u8bae\uff0c\u8fde\u63a5\u5230 EC2 \u7528\u6237 ec2-user@[\u516c\u5171 IP]\u3002<\/p>\n<p>\u5c06\u4e0b\u8f7d\u7684tgz\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n<h2>3.2. SSH\u8fde\u63a5\u4f7f\u7528private.pem\u4f5c\u4e3a\u8eab\u4efd\u9a8c\u8bc1\u5bc6\u94a5\uff0c\u8fde\u63a5\u5230[public ip]\u4e0a\u7684ec2-user\u7528\u6237\u3002<\/p>\n<h2>\u521b\u5efa liblzma.so.0 \u7684\u7b26\u53f7\u94fe\u63a5\u89e3\u538btgz\u6587\u4ef6\u5e76\u542f\u52a8mongod\u65f6\uff0c\u4f1a\u51fa\u73b0\u5982\u4e0b\u9519\u8bef\uff0c\u56e0\u6b64\u9700\u8981\u521b\u5efaliblzma.so.0\u7684\u7b26\u53f7\u94fe\u63a5\u3002<\/p>\n<pre class=\"post-pre\"><code>[ec2-user@ip-172-30-2-127 bin]$ .\/mongod --help\r\n.\/mongod: error while loading shared libraries: liblzma.so.0: cannot open shared object file: No such file or directory\r\n<\/code><\/pre>\n<h1>\u67e5\u770bliblzma.so\u7684\u7248\u672c3.3.1\u3002\u67e5\u770b\/lib64\u76ee\u5f55\u4e0b\u4ee5liblzma\u5f00\u5934\u7684\u6240\u6709\u6587\u4ef6<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u5b9e\u4f8b\uff1a<\/p>\n<blockquote><p>[ec2\u7528\u6237@ip-172-30-2-127 bin]$ \u5217\u51fa\/lib64\/liblzma*\u7684\u6587\u4ef6<br \/>\n\/lib64\/liblzma.so.5 \/lib64\/liblzma.so.5.2.2<\/p><\/blockquote>\n<h1>3.3.2 \u521b\u5efa\u7b26\u53f7\u94fe\u63a5\uff08\u9700\u8981sudo\uff09sudo ln -s \/lib64\/liblzma.so.5.2.2 \/lib64\/liblzma.so.0<\/p>\n<p>\u5c06\/lib64\/liblzma.so.5.2.2\u94fe\u63a5\u5230\/lib64\/liblzma.so.0\u3002<\/p>\n<h1>3.3.3 \u786e\u8ba4\u7b26\u53f7\u94fe\u63a5\u5217\u51fa\/lib64\u76ee\u5f55\u4e0b\u6240\u6709\u4ee5liblzma\u5f00\u5934\u7684\u6587\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<p>\u5b9e\u65bd\u4f8b\u5b50\uff1a<\/p>\n<blockquote><p>[ec2-user@ip-172-30-2-127 bin]$ ls -al \/lib64\/liblzma*<br \/>\nlrwxrwxrwx. 1 root root 23 Jan 4 01:34 \/lib64\/liblzma.so.0 -&gt; \/lib64\/liblzma.so.5.2.2<br \/>\nlrwxrwxrwx. 1 root root 16 Jan 28 2019 \/lib64\/liblzma.so.5 -&gt; liblzma.so.5.2.2<br \/>\n-rwxr-xr-x. 1 root root 157400 Mar 4 2016 \/lib64\/liblzma.so.5.2.2<\/p>\n<p>[ec2-user@ip-172-30-2-127 bin]$ ls -al \/lib64\/liblzma*<br \/>\nlrwxrwxrwx. 1 root root 23 Jan 4 01:34 \/lib64\/liblzma.so.0 \u94fe\u63a5\u81f3 \/lib64\/liblzma.so.5.2.2<br \/>\nlrwxrwxrwx. 1 root root 16 Jan 28 2019 \/lib64\/liblzma.so.5 \u94fe\u63a5\u81f3 liblzma.so.5.2.2<br \/>\n-rwxr-xr-x. 1 root root 157400 Mar 4 2016 \/lib64\/liblzma.so.5.2.2<\/p><\/blockquote>\n<p>\u5bf9\u7b56\u662f\u53c2\u8003\u4ee5\u4e0b\u7f51\u5740\u3002<br \/>\n\u5f53mod_security\u5728RHEL\u6216Oracle Linux 7\u4e0a\u542f\u7528\u65f6\uff0cOracle HTTP Server\u65e0\u6cd5\u542f\u52a8\u3002<br \/>\nhttps:\/\/docs.oracle.com\/cd\/E92951_01\/webtier\/administer-ohs\/GUID-5571D9DB-8F96-4473-9D61-93249DE726AD.htm<\/p>\n<h2>3.4. \u5c55\u5f00\u5b58\u6863\u89e3\u538bmongodb-linux-x86_64-rhel62-4.4.2.tgz\u6587\u4ef6\uff0c\u4f7f\u7528tar zxvf\u547d\u4ee4\u3002<\/p>\n<p>\u53ea\u8981\u5b58\u5728mongodb-linux-x86_64-rhel62-4.4.2\u76ee\u5f55\uff0c\u5c31\u8868\u793a\u6210\u529f\u3002<\/p>\n<h1>4. \u8fdb\u884c\u52a8\u4f5c\u786e\u8ba4<\/p>\n<h2>4.1. \u521b\u5efa\u6570\u636e\u5e93\u76ee\u5f55\u8fdb\u5165mongodb-linux-x86_64-rhel62-4.4.2\u76ee\u5f55\u5e76\u521b\u5efa\u4e00\u4e2a\u540d\u4e3adb\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<h2>4.2. \u542f\u52a8MongoDB\u670d\u52a1\u5668\u542f\u52a8mongod\u7684\u547d\u4ee4\u662f bin\/mongod &#8211;dbpath db &amp;\uff0c\u8fd9\u5c06\u542f\u52a8mongod\u3002<\/p>\n<h2>4.3. \u4ece\u547d\u4ee4\u884c\u754c\u9762\u8fdb\u884c\u8fde\u63a5<br \/>\n\u4f7f\u7528bin\/mongo<\/p>\n<p>\u5c1d\u8bd5\u4e86\u5404\u79cd\u4e0d\u540c\u7684\u4e8b\u60c5<\/p>\n<pre class=\"post-pre\"><code>[ec2-user@ip-172-30-2-127 mongodb-linux-x86_64-rhel62-4.4.2]$ bin\/mongo\r\nMongoDB shell version v4.4.2\r\nconnecting to: mongodb:\/\/127.0.0.1:27017\/?compressors=disabled&amp;gssapiServiceName=mongodb\r\n{\"t\":{\"$date\":\"2021-01-04T01:35:21.601+00:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":22943,   \"ctx\":\"listener\",\"msg\":\"Connection accepted\",\"attr\":{\"remote\":\"127.0.0.1:52938\",\"connectionId\":1,\"connectionCount\":1}}\r\n{\"t\":{\"$date\":\"2021-01-04T01:35:21.602+00:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":51800,   \"ctx\":\"conn1\",\"msg\":\"client metadata\",\"attr\":{\"remote\":\"127.0.0.1:52938\",\"client\":\"conn1\",\"doc\":{\"application\":{\"name\":\"MongoDB Shell\"},\"driver\":{\"name\":\"MongoDB Internal Client\",\"version\":\"4.4.2\"},\"os\":{\"type\":\"Linux\",\"name\":\"Red Hat Enterprise Linux Server release 7.6 (Maipo)\",\"architecture\":\"x86_64\",\"version\":\"Kernel 3.10.0-957.5.1.el7.x86_64\"}}}}\r\nImplicit session: session { \"id\" : UUID(\"fc1bfeb5-986f-4f36-ac7b-a278bb5bef57\") }\r\nMongoDB server version: 4.4.2\r\nWelcome to the MongoDB shell.\r\nFor interactive help, type \"help\".\r\nFor more comprehensive documentation, see\r\n        https:\/\/docs.mongodb.com\/\r\nQuestions? Try the MongoDB Developer Community Forums\r\n        https:\/\/community.mongodb.com\r\n---\r\nThe server generated these startup warnings when booting:\r\n        2021-01-04T01:35:11.521+00:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted\r\n        2021-01-04T01:35:11.521+00:00: This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip &lt;address&gt; to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning\r\n        2021-01-04T01:35:11.521+00:00: \/sys\/kernel\/mm\/transparent_hugepage\/enabled is 'always'. We suggest setting it to 'never'\r\n        2021-01-04T01:35:11.521+00:00: \/sys\/kernel\/mm\/transparent_hugepage\/defrag is 'always'. We suggest setting it to 'never'\r\n        2021-01-04T01:35:11.521+00:00: Soft rlimits too low\r\n        2021-01-04T01:35:11.521+00:00:         currentValue: 1024\r\n        2021-01-04T01:35:11.521+00:00:         recommendedMinimum: 64000\r\n---\r\n---\r\n        Enable MongoDB's free cloud-based monitoring service, which will then receive and display\r\n        metrics about your deployment (disk utilization, CPU, operation statistics, etc).\r\n\r\n        The monitoring data will be available on a MongoDB website with a unique URL accessible to you\r\n        and anyone you share the URL with. MongoDB may use this information to make product\r\n        improvements and to suggest MongoDB products and deployment options to you.\r\n\r\n        To enable free monitoring, run the following command: db.enableFreeMonitoring()\r\n        To permanently disable this reminder, run the following command: db.disableFreeMonitoring()\r\n---\r\n&gt; show dbs\r\nadmin   0.000GB\r\nconfig  0.000GB\r\nlocal   0.000GB\r\n&gt; use admin\r\nswitched to db admin\r\n&gt; show collections\r\nsystem.version\r\n&gt; help\r\n        db.help()                    help on db methods\r\n        db.mycoll.help()             help on collection methods\r\n        sh.help()                    sharding helpers\r\n        rs.help()                    replica set helpers\r\n        help admin                   administrative help\r\n        help connect                 connecting to a db help\r\n        help keys                    key shortcuts\r\n        help misc                    misc things to know\r\n        help mr                      mapreduce\r\n\r\n        show dbs                     show database names\r\n        show collections             show collections in current database\r\n        show users                   show users in current database\r\n        show profile                 show most recent system.profile entries with time &gt;= 1ms\r\n        show logs                    show the accessible logger names\r\n        show log [name]              prints out the last segment of log in memory, 'global' is default\r\n        use &lt;db_name&gt;                set current database\r\n        db.mycoll.find()             list objects in collection mycoll\r\n        db.mycoll.find( { a : 1 } )  list objects in mycoll where a == 1\r\n        it                           result of the last line evaluated; use to further iterate\r\n        DBQuery.shellBatchSize = x   set default number of items to display on shell\r\n        exit                         quit the mongo shell\r\n&gt; use test;\r\nswitched to db test\r\n&gt; db.people.insert({\"name\":\"hoge\", \"age\":30})\r\n{\"t\":{\"$date\":\"2021-01-04T01:37:26.397+00:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":20320,   \"ctx\":\"conn1\",\"msg\":\"createCollection\",\"attr\":{\"namespace\":\"test.people\",\"uuidDisposition\":\"generated\",\"uuid\":{\"uuid\":{\"$uuid\":\"7a68d757-0ffe-4a7c-9c1a-a1e15ff56aff\"}},\"options\":{}}}\r\n{\"t\":{\"$date\":\"2021-01-04T01:37:26.405+00:00\"},\"s\":\"I\",  \"c\":\"INDEX\",    \"id\":20345,   \"ctx\":\"conn1\",\"msg\":\"Index build: done building\",\"attr\":{\"buildUUID\":null,\"namespace\":\"test.people\",\"index\":\"_id_\",\"commitTimestamp\":{\"$timestamp\":{\"t\":0,\"i\":0}}}}\r\nWriteResult({ \"nInserted\" : 1 })\r\n&gt; db.people.find()\r\n{ \"_id\" : ObjectId(\"5ff27156a04374c0a5db9eb2\"), \"name\" : \"hoge\", \"age\" : 30 }\r\n&gt; exit\r\nbye\r\n{\"t\":{\"$date\":\"2021-01-04T01:37:40.619+00:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":22944,   \"ctx\":\"conn1\",\"msg\":\"Connection ended\",\"attr\":{\"remote\":\"127.0.0.1:52938\",\"connectionId\":1,\"connectionCount\":0}}\r\n[ec2-user@ip-172-30-2-127 mongodb-linux-x86_64-rhel62-4.4.2]$\r\n<\/code><\/pre>\n<h1>4. \u968f\u4fbf\u804a\u4e00\u4e0b<br \/>\n\u4e00\u822c\u4eba\u5982\u679c\u4f7f\u7528\u4e9a\u9a6c\u900a\u6587\u6863\u6570\u636e\u5e93\uff08\u517c\u5bb9MongoDB\uff09\uff0c\u6211\u8ba4\u4e3a\u4f1a\u662f\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<br \/>\nhttps:\/\/aws.amazon.com\/jp\/documentdb\/<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d024837434c4406bd07f7\/50-0.png\" alt=\"image.png\" \/><\/p>\n<h1>5. \u8bf7\u63d0\u4f9b\u76f8\u5173\u94fe\u63a5MongoDB\u5b98\u65b9\u7f51\u7ad9<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u63d0\u662f\u6307\u4e00\u4e2a\u8bba\u8ff0\u6216\u8005\u884c\u52a8\u6240\u4f9d\u636e\u7684\u57fa\u672c\u6761\u4ef6\u6216\u5047\u8bbe\u30022021\u5e741\u67084\u65e5 &#8211; RHEL7.6\u7684AMI\uff08\u6bd4 [&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":[227],"class_list":["post-29475","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"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>\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB\u7684\u6280\u672f\u6587\u7ae0\" \/>\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\/zh\/blog\/\u5728rhel\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684mongodb\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728rhel\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684mongodb\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-14T08:10:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-12T06:18:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d024837434c4406bd07f7\/50-0.png\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/\",\"name\":\"\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-14T08:10:35+00:00\",\"dateModified\":\"2025-08-12T06:18:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"description\":\"\u5173\u4e8e\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB - Blog - Silicon Cloud","description":"\u5173\u4e8e\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB\u7684\u6280\u672f\u6587\u7ae0","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\/zh\/blog\/\u5728rhel\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684mongodb\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB","og_description":"\u5173\u4e8e\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728rhel\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684mongodb\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-14T08:10:35+00:00","article_modified_time":"2025-08-12T06:18:31+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d024837434c4406bd07f7\/50-0.png"}],"author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/","name":"\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-14T08:10:35+00:00","dateModified":"2025-08-12T06:18:31+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"description":"\u5173\u4e8e\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728RHEL\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684MongoDB"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8rhel%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84mongodb%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/29475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=29475"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/29475\/revisions"}],"predecessor-version":[{"id":111485,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/29475\/revisions\/111485"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=29475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=29475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=29475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}