How to Create a configuration File For MongoDB

后端 未结 4 1349
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 06:52

I have installed mongodb for mac os through 10gen and I have gone through the documentation to do so. Everything seems fine apart from the configuration file. I can not see

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 07:25

    Unless you have installed a packaged version of MongoDB (for example, using Homebrew or Mac Ports) you will have to create a config file manually, or just pass the appropriate command line parameters when starting up MongoDB.

    If you want a commented example of a config file to start with, the mongodb.conf in the Debian/Ubuntu package should be a good starting point. Important options to check are the dbpath and logpath which will likely be different for you.

    It would also be worth looking at the Homebrew mongodb formula which includes setting up a LaunchAgent script to manage the mongod service.

提交回复
热议问题