[SERVER-36371] Connection refused to connect Created: 31/Jul/18  Updated: 01/Aug/18  Resolved: 31/Jul/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.0.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Zorig Ganbold Assignee: Nick Brewer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac OS X 10.13.6


Attachments: PNG File Untitled.png    
Participants:

 Description   

After i installed mongodb v4.0 it was working fine. However after restarting my machine it is giving me an error called connection refused. Screenshot is in attachment How can i fix this?



 Comments   
Comment by Nick Brewer [ 31/Jul/18 ]

Thanks for your report. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-user group.

To get you started, I suggest checking that the mongod is running, and listening on the default port on localhost - you can use curl to do so. If the mongod is listening, it will return output similar to this:

curl 127.0.0.1:27017
It looks like you are trying to access MongoDB over HTTP on the native driver port.

Otherwise you'll receive:

curl 127.0.0.1:27017
curl: (7) Failed to connect to 127.0.0.1 port 27017: Connection refused

Regards,
Nick

Generated at Thu Feb 08 04:42:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.