Install Mongo DB on windows is easy . 4 steps and you are in business.
- Download the software.
- Unzip the software
- Create the data folder
- run the daemon mongod.exe .
Simply control + C would shutdown the mongo DB gracefully.
RUN mongo DB as windows service
Create the configuration file:
- options are case sensitive . The best way to find the options are check the mongod –help
- quote on the path does not work. EX: can not use “C:\data\db”
Use below command to install as service .
Then we can find mongo db list in the service manager.
Failed to connect to 127.0.0.1:27017, reason: errno:10061 No connection could be made because the target machine actively refused it.
This is because the you are running on the non-privilege session. change to the administrator command line would resolve this.