September 2, 20232 yr 网上能找到的教程有限,且教程都差不多,都是两三年前的。我这还没安装到rocket.chat呢,docker安装mongodb的时候,按教程也做了配置文件“mongod.conf”,但就是参数里填写了“-f /data/db/mongod.conf”,mongodb的docker容器启动不了。删掉后,就能启动。求大佬解答。
September 9, 20232 yr Author 额外的配置文件内容如下: # mongod.conf # for documentation of all options, see: # http://docs.mongodb.org/manual/reference/configuration-options/ # Where and how to store data. storage: dbPath: /data/db journal: enabled: true # engine: # mmapv1: # wiredTiger: # network interfaces net: port: 27017 bindIp: 127.0.0.1 # how the process runs processManagement: timeZoneInfo: /usr/share/zoneinfo #security: authorization: "enabled" #operationProfiling: replication: replSetName: "rs01" #sharding: ## Enterprise-Only Options: #auditLog: #snmp: 日志提示内容如下: Unrecognized option: storage.journal.enabled try 'mongod --help' for more information
September 20, 20232 yr 这个问题是因为 你的mongodb超过了4.2.0版本 这之后日志是默认开的 已经没有journal这个选项了 所以需要删掉 journal: enabled: true 这两行
October 3, 20232 yr On 9/30/2023 at 4:39 PM, lxingnuaa said: 删掉了仍然不行,求大佬解答。 https://drive.google.com/drive/folders/1d77MQDUgULdryngpHIcDACYbCpJ9oCRQ\
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.