search

Home  >  Q&A  >  body text

node.js - mongodb启动配置文件报错

我在cmd中加载配置文件总是报错

文件配置为

求大佬告知怎么解决

高洛峰高洛峰2788 days ago713

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-04-17 15:50:23

    The configuration file probably has the suffix .txt. You can remove the suffix and try again

    reply
    0
  • 迷茫

    迷茫2017-04-17 15:50:23

    Try relative paths

    mongod --config ../mongod.conf

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 15:50:23

    See that your MongoDB is in uppercase, pay attention to the case

    reply
    0
  • Cancelreply