Where is the MongoDB configuration file located in Linux?

/etc/mongod.conf

Where is the MongoDB configuration file located in Windows?