It was installed directly with MSI, and there was a problem during startup. How do you solve it?
The following is my log file:
MongoDB shell version v3.4.7
connecting to: mongodb://127.0.0.1:27017
2017-08-16T23:45:23.316+0800 W NETWORK [thread1] Failed to connect to 127.0.
:27017 after 5000ms milliseconds, giving up.
2017-08-16T23:45:23.317+0800 E QUERY [thread1] Error: couldn’t connect to
ver 127.0.0.1:27017, connection attempt failed :
exception: connect failed
One hundred percent did not start, so Nongcheng also tried many methods on the Internet and finally there was no use for eggs. Finally, the Great God took the lead. Let me reinstall, execute the following line of code, and solve it in minutes.
mongod.exe –install –logpath=F:PHPmongologmongo.log –dbpath=F:PHPmongodata