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

前端 未结 10 1551
庸人自扰
庸人自扰 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:15

    In the config file use absolute path instead of relative path for dbpath & logpath as like below and run the command to install the MongoDB service.

    dbpath = c:/Pluralsight/db (instead of /Pluralsight/db)  
    logpath = c:/Pluralsight/mongo-server.log (instead of Pluralsight/mongo-server.log)  
    verbose = vvvvv
    

    Command to install the MongoDB service is like:

    mongod -config "C:\Pluralsight\mongod.conf" --install
    

提交回复
热议问题