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

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

    I was having the same problem with MongoDB's instructions because I was using relative path in the CLI for my mongo.cfg once I had navigated to the MongoDB bin:

    mongod.exe --config mongod.cfg --install.

    Instead I needed to specify the config file's absolute path:

    mongod.exe --config "C:\Program Files\MongoDB\Server\3.0\bin\mongod.cfg" --install

提交回复
热议问题