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.
auth = true
https://docs.mongodb.com/v2.4/reference/configuration-options/#auth
security:
authorization: enabled
https://docs.mongodb.com/v3.2/reference/configuration-options/#security.authorization https://docs.mongodb.com/v3.0/reference/configuration-options/#security.authorization https://docs.mongodb.com/v2.6/reference/configuration-options/#security.authorization