I’m in the “Chapter 1: Authentication” in the “Homework 1.1 : Enable SCRAM-SHA-1” exercise trying to make vagrant work.
After execute “
vagrant ssh database” and have access to the same I tried to do a little test doing “mongo”, but it returned:
MongoDB shell version: 3.2.21 connecting to: test 2018-10-18T21:08:58.843+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: errno:111 Connection refused 2018-10-18T21:08:58.844+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:229:14 @(connect):1:6 exception: connect failed
Any idea why?
Thanks in advance