{"id":27648,"date":"2024-11-24T19:46:35","date_gmt":"2024-11-24T11:46:35","guid":{"rendered":"https:\/\/fwq.ai\/blog\/?p=27648"},"modified":"2024-11-24T19:46:35","modified_gmt":"2024-11-24T11:46:35","slug":"mongodb%e7%9a%84%e9%85%8d%e7%bd%ae-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/27648\/","title":{"rendered":"Mongodb\u7684\u914d\u7f6e"},"content":{"rendered":"<p>1\u3001\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55\uff1a\/etc\/mongod<\/p>\n<p>2\u3001\u5b98\u65b9\u914d\u7f6e\u6587\u6863\uff1ahttps:\/\/docs.mongodb.com\/manual\/reference\/configuration-options\/<\/p>\n<p>&nbsp;<\/p>\n<p># mongod.conf<\/p>\n<p># for documentation of all options, see:<br \/>\n#\u00a0\u00a0 http:\/\/docs.mongodb.org\/manual\/reference\/configuration-options\/<\/p>\n<p># where to write logging data.<br \/>\nsystemLog:<br \/>\ndestination: file<br \/>\nlogAppend: true<br \/>\npath: \/var\/log\/mongodb\/mongod.log<\/p>\n<p># Where and how to store data.<br \/>\nstorage:<br \/>\ndbPath: \/data\/mongodb<br \/>\njournal:<br \/>\nenabled: true<br \/>\n#\u00a0 engine:<br \/>\n#\u00a0 mmapv1:<br \/>\n#\u00a0 wiredTiger:<\/p>\n<p># how the process runs<br \/>\nprocessManagement:<br \/>\nfork: true\u00a0 # fork and run in background<br \/>\npidFilePath: \/run\/mongodb\/mongod.pid\u00a0 # location of pidfile<\/p>\n<p># network interfaces<br \/>\nnet:<br \/>\nport: 27017<br \/>\nbindIp: 127.0.0.1\u00a0 # Listen to local interface only, comment to listen on all interfaces.<\/p>\n<p>#security:<\/p>\n<p>#operationProfiling:<\/p>\n<p>#replication:<\/p>\n<p>#sharding:<\/p>\n<p>#Enterprise-Only Options<\/p>\n<p>#auditLog:<\/p>\n<p>#snmp:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55\uff1a\/etc\/mongod 2\u3001\u5b98\u65b9\u914d\u7f6e\u6587\u6863\uff1ahttps:\/\/docs.mongodb.com\/manual\/reference\/configuration-options\/ &nbsp; # mongod.conf # for documentation of all options, see: #\u00a0\u00a0 http:\/\/docs.mongodb.org\/manual\/reference\/configuration-options\/ # where to write logging data. systemLog: destination: file logAppend: true path: \/var\/log\/mongodb\/mongod.log # Where and how to store data. storage: dbPath: \/data\/mongodb journal: enabled: true #\u00a0 engine: #\u00a0 mmapv1: #\u00a0 wiredTiger: # how the process runs processManagement: fork: true\u00a0 # [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-27648","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=27648"}],"version-history":[{"count":1,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27648\/revisions"}],"predecessor-version":[{"id":27652,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27648\/revisions\/27652"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=27648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=27648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=27648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}