All I did is to run below script: D:\Tools\MongoDb\bin\mongod.exe --dbpath D:\MongoDb\data\
Then I got exception: Error connecting to the service Control Manager: Access is denied. (5)
I was using administrator account to operate this, I already created folders related to the script.
And I didn't experience issue like this when I installed 32-bit mongodb in 32-bit Windows Server 2003.
I appreciate any help about this!
Run as Administrator
,kindly follow below steps :- 1. Click Start, click All Programs, and then click Accessories. 2. Right-click Command prompt, and then click Run as administrator. 3. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue. Taken from this link – Ty