Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If required the tool will prompt you for database credentials and advise on remote-vs-local operation, as well as authenticated-vs-nonauthenticated modes. The MongoDB setup helper can be run repeatedly with no adverse effects.

See how authentication is enabled in this mongod.conf on the NMIS9 VM that we ship.
See 'security:' >>' authorization: enabled':

Code Block
title/etc/mongod.conf
net:
  bindIp: 127.0.0.1
  port: 27017
processManagement:
  fork: true
  pidFilePath: /var/run/mongodb/mongod.pid
security:
  authorization: enabled
storage:
  dbPath: /data/mongo
  journal:
    enabled: true
  wiredTiger:
    engineConfig:
      cacheSizeGB: 1.7
systemLog:
  destination: file
  logAppend: true
  logRotate: reopen
  path: /var/log/mongodb/mongod.log 


See paragraph Setting cacheSizeGB appropriately when MongoDB table type is wiredtiger (the default)
in this wiki page:
Reducing a Server's Memory Footprint when OMK applications are installed
for the calculation we use to calculate 'cacheSizeGB: 1.7' in the above mongod.conf file.


Resetting Databases with the setup_mongodb.pl Script

...