How to set authorization in mongodb config file?

mlibre picture mlibre · Aug 15, 2014 · Viewed 59.6k times · Source

I run mongod.exe in server with this option in cmd.exe:

mongod.exe --dbpath=path --auth

And now, how can I do this in a config file?
my mongod.cfg:

dbpath=D:\Program Files\MongoDB 2.6 Standard\data

security=
authorization= enabled

I get this error :

Error parsing INI config file: unknown option security.