When you use MongoDB, you find that you can't even keep up with the server. When using MongoDB vue to connect to the database, the error is as follows:
Refer to Csdn: http://blog.csdn.net/yuebinghaoyuan/article/details/12068975
[HTML]View PlainCopyprint?
- Unable to connect to server 127.0.0.1:27017: Unable to connect because the target machine is actively rejecting. 127.0.0.1:27017.
- Type:MongoDB.Driver.MongoConnectionException
- Stack:at MongoDB.Driver.Internal.DirectConnector.Connect (TimeSpan timeout)
- At MongoDB.Driver.MongoServer.Connect (TimeSpan timeout, connectwaitfor waitFor)
- At MongoDB.Driver.MongoServer.Connect (TimeSpan timeout)
- At MongoDB.Driver.MongoServer.Connect ()
- At MangoUI.MMongo.FQlxNlJKqO74gYmXgZR4 (Object)
- At MangoUI.MMongo.Open (Boolean usesamus)
- At MangoUI.MMongo.Open ()
- At MangoUI.ComNavTree.wJQdUqApCpjoC39P59n (Object)
- At MangoUI.ComNavTree.ExpandMe (Mtreenode expand)
- At MangoUI.ComNavTree.tree_BeforeExpand (Object sender, TreeViewCancelEventArgs e)
First: If the query has been turned on, the MongoDB service is turned on in Task manager because it was set up and started with the Windows service startup. It started, but it still doesn't work.
To restart the service, the results are as follows:
Symptom Description: There is a problem with the service.
Re-access server address: http://127.0.0.1:28017/, if not accessible, the service does not actually start.
Depending on the error log, you can determine why this problem occurs:
The general reason is that MongoDB stops illegally.
To resolve this problem scenario:
In the MongoDB installation directory, there is a. lock file, delete this file.
Discover MongoDB Normal Startup:
The MongoDB database service is unable to start the solution (same applies to MongoDB Vue's card dead)