Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>
Solution
1. check your configuration information first. If everything is correct, open CMD in administrator mode instead of directly
2. and then jump to the bin directory of mongodb in CMD. My example is:
cd "C:\Program Files\MongoDB\Server\3.4\bin"
3. then the CMD is written to the service
mongod --dbpath "D:\MongodbData\data" --logpath "D:\MongodbData\logs\mongodb.log" --install --serviceName "MongoDB"
4. finally, start the service
net start MongoDB
5. after opening, you can simply test whether it is enabled or not
Enter in the browser http://127.0.0.1 :27017
, If it looks like you are trying to access mongodb over HTTP on the native driver port. is displayed, it will be opened successfully
or go to the computer management page to check whether it is opened
Similar Posts:
- [Solved] Mongodb Error: NETWORK [thread1] Failed to connect to 127.0.0.1:27017
- [Solved] MongoDB Start ERROR: child process failed, exited with error number
- Mongovue is unable to create collections and log in with user name and password
- Sublime run code – open in browser shortcut key settings
- Error reported when Java connects mongodb com.mongodb.mongosocketopenexception: exception opening socket has been solved
- Yeoman -- AngularJS Full-Stack generator
- [Solved] Mongodb Error: Failed to start mongodb.service: Unit mongodb.service is masked.
- No package mongodb-org available. [How to Solve]
- Unable to start mongod after installing mongodb in Ubuntu
- Blender Install Error: AL lib: UpdateDeviceParams: Failed to set 44100hz , got 48000hz instead