The location of the configuration file would depend on the operating system and how you installed MongoDB: https://www.mongodb.com/docs/manual/reference/configuration-options/