Skip to content

Instantly share code, notes, and snippets.

@koji
Created November 1, 2017 20:48
Show Gist options
  • Save koji/93f1dde16080d2d064efc2afdcc8aeab to your computer and use it in GitHub Desktop.
Save koji/93f1dde16080d2d064efc2afdcc8aeab to your computer and use it in GitHub Desktop.
mongodb erro
$ mongo
MongoDB shell version v3.4.6
connecting to: mongodb://127.0.0.1:27017
2017-07-13T13:29:20.917+0500 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2017-07-13T13:29:20.917+0500 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:237:13
@(connect):1:6
exception: connect failed

$ brew services start mongodb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment