cannot find /data/keyfile - how do I start db in authentication mode without keyfile?
this is for Lab: launching mongod
Hey @Zeenath_97192
So In this lab we are only launching a standalone mongod process. So no need for a keyfile just yet.
To answer your question about how to run the daemon in auth mode you can see the docs below. First is the command line way and the second is the config file method.
https://docs.mongodb.com/manual/reference/program/mongod/index.html#cmdoption-mongod-auth
https://docs.mongodb.com/manual/reference/configuration-options/index.html#security.authorization
1 Like