[Resolved] W NETWORK [thread1] Failed to connect to 127.0.0.1

[Resolved] W NETWORK  [thread1] Failed to connect to 127.0.0.1:

 

Once after the successful download and extraction of mongodb, I assume you kept all your extracted content in c drive mongodb folder.

 

So now your folder c:\mongodb looks like this, I created data\db folder as well inside the mongodb to store mongodb data’s manually.

W NETWORK  [thread1] Failed to connect to 127.0.0.1

 

 

Step 1: Open the terminal or command prompt and run the first mongod command to start the mongodb engine first,

 

mongod –dbpath c:\mongodb\data\db

 

Step 2: Now open the second terminal (don’t close the first one) and run the mongo command to start running/working with mongodb.

mongo or mongo.exe

 

 

If you are getting any of this below issues refer the respective shared links to resolve it,

[Resolved] exception in initandlisten mongodb

[Resolved] exception in initandlisten mongodb


[Resolved] the default storage engine ‘wiredtiger’ is not available

[Resolved] the default storage engine ‘wiredtiger’ is not available

 

 

Feel free to write your comments to help you better.

 

Leave a Reply