mongod.conf.txt (667 Bytes)

here is the default config file you can use. if you somehow deleted your config file, copy this one. but remember, you will still need the path we were asking for.

or, put this file where ever you want (and accessible by systemctl) and edit the following line in /usr/lib/systemd/system/mongod.service (at least ubuntu 20 uses this path)

  • ExecStart=/usr/bin/mongod --config /etc/mongod.conf (again this is the default path)