Problems encountered in learning MongoDB

1. Connection failed

When I run mongo.exe today, it keeps reporting an error, indicating that the connection is wrong. I haven't changed anything in the past two days after thinking about it. I looked at the configuration file and directory and there is no problem. At this moment, I remembered that sql was sometimes used. There is a problem of inability to connect. The reason for the problem is that the sql service is not turned on. Is this problem also because the MongoDB service is not turned on? I found the MongoDB service on the service with a try attitude and restarted it. Connect again, ok connection is successful, it turns out that it is because the service is not started

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325127534&siteId=291194637