MongoDB Storage Engine How can I change the storage engine of MongoDB permanently so that I don't have to run mongod without having to specify the storage engine every time? I am using shell version 3.2.7 on Windows 7 32-bit. I got an error that said:


  28663 Cannot start server. The default storage engine 'wiredTiger' is
  not available with this build of mongod. Please specify a different
  storage engine explicitly, e.g. --storageEngine=mmapv1., terminating.


Also does anyone know how to cleanly shutdown the server when I am done working? I use Ctrl+C but it causes an error, then I have to empty the data folder to get the process to start again.
You can set that in the storage.config setting within your YAML configuration file.

Example:

storage:
  dbPath: d:\data\db
  engine: mmapv1


If you're not already starting your MongoDB service using a configuration file, see here for the details on how do to that for Windows.