Failed Global Initialization: BadValue logpath requires an absolute file path with windows services

前端 未结 10 1531
庸人自扰
庸人自扰 2021-02-19 07:25

I am getting this error constantly while i am trying to install mongod using a configuration file. So, I am looking at this tutorial on Pluralsight on mongodb. The person\'s pro

10条回答
  •  盖世英雄少女心
    2021-02-19 08:13

    there can't be quotation marks in your configure file . way like this is wrong:

    dbpath="D:/Program Files/MongoDB/Data/DB"
    logpath="D:/Program Files/MongoDB/Data/Log/mongo.log"
    

    downside is right:

    dbpath=D:/Program Files/MongoDB/Data/DB
    logpath=D:/Program Files/MongoDB/Data/Log/mongo.log
    

提交回复
热议问题