Mongodb is installed, but the MongoDB server is not started.
Step 1: Open CMD and enter the MongoDB bin directory
Step 2: Enter the instruction: MonGod — dbPATH database path
If successful, it will be shown as follows:
Step 3: Leave the window open and open another CMD
Enter the bin directory of MongoDB again and enter Mongo, which is shown as follows:
Finally, you can run mongo on the console. Such as:
Step 1: Open CMD and enter the MongoDB bin directory
Step 2: Enter the instruction: MonGod — dbPATH database path
If successful, it will be shown as follows:
Step 3: Leave the window open and open another CMD
Enter the bin directory of MongoDB again and enter Mongo, which is shown as follows:
Finally, you can run mongo on the console. Such as:
Read More:
- MongoNetworkError: failed to connect to server [localhost:27017]
- CentOS Liunx 7 uses rdesktop to remotely connect to the Alibaba Cloud server and it appears Failed to connect, CredSSP required by server.
- Error: could’t connect to server 127.0.0.1:27017, connection attempt failed
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed
- Failed to connect to Mir:Failed to connect to server socket:No such file or directory
- Mongodb uses Mongo to report error: could’t connect to server 127.0.0.1:27017, connection attempt failed: socket
- RTMP_Connect0, failed to connect socket. 110 (Connection timed out)
- The mongoDB service failed to start (exception: connect failed)
- Failed to connect to remote VM. Connection reused. Connection reused: Connect
- Error: could’t connect to server 127.0.0.1:27017 Src / Mongo / shell/ mongo.js
- 【Synergy】Error:failed to connect to server:Connection was refused
- mysql problem solving: mysqladmin: connect to server at’localhost’ failed
- 【MongoDB】 Failed to connect to 127.0.0.1:27017, reason: Connection refused
- EBS R12 login error—R12.1 FRM-92050: FAILED TO CONNECT TO SERVER: /FORMS/LSERVLET
- MYSQL login error: mysqladmin: connect to server at’localhost’ failed
- [Solved] failed to connect to server, reason: Unable to establish connection
- The server just without updating PID file and can’t connect to local MySQL server through socket are solved
- Window installation of MongoDB exception: connect failed exception
- Problem solving: PDF cannot be opened, and acrobat failed to connect to a DDE server appears
- error:Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused;error:couldn‘t ….