MongoDB DBA · 题目 505 · 多选

22. Consider the following mongod configuration file: storage: dbPath: /data/db systemLog: destination: file path: "/data/logs" replication: replSetName: "RS-0" net: bindIp: "127.0.0.1,192.168.0.100" Which of the following are true when running a mongod server with the above configuration file, when no other command line arguments are passed to this server instance? Check all that apply:

题目选项

  1. A.
    The mongod instance will listen to incoming requests on port 27017
  2. B.
    Log messages will be sent to SYSLOG
  3. C.
    Data files will be stored in server path /data/db

答案置信度:高

正确答案:A、C

解析语言:中文

storage.dbPath: /data/db 决定数据文件位置(A 对);systemLog.destination: file 表示日志写文件而不是 SYSLOG(B 错);net 段没有指定 port,mongod 默认监听 27017(C 对)。配置里的 replSetName 只说明它以副本集成员身份启动,与监听端口无关。

所在套题

此题在题库中有 1 条记录。公开详情合并相同题干和选项;完整公开题展示置信度最高的一条记录,其他题目仅展示摘要。按套学习保留每条记录原有的答案、解析和置信度。

作者 · 作品 · 开源

作者与 MongoDB 作品

专注数据平台、MongoDB 迁移同步与云运维产品研发。

有任何 MongoDB 需求,均可联系作者。

联系作者 ↗mlhp123@outlook.com

支持作者

如果题库对您有帮助,欢迎自愿扫码打赏。

支付宝扫码打赏作者打开打赏原图 ↗