I installed Mongodb latest (4.0) as a service on Windows 10
It seems like its ignoring the mongod.cfg file in the bin directory
C:\MongoDB4.0\bin\mongod.cfg
# Where and how to store data.
storage:
dbPath: C:\MongoDB4.0\data
The service will not start,
When I start it from CMD like:
c:\MongoDB4.0\bin>mongod.exe
This is its output: (see dbpath=c:\data\db)
Log: [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
Log: [initandlisten] MongoDB starting : pid=7104 port=27017 dbpath=c:\data\db\ 64-bit host=Win10-Pc
Log: [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
Log: [initandlisten] db version v4.0.2
Log: [initandlisten] git version: fc1573ba18aee42f97a3bb13b67af7d837826b47
I see that the service gets the configuration as a parameter
C:\MongoDB4.0\bin\mongod.exe --config "C:\MongoDB4.0\bin\mongod.cfg" --service