I am working through this lab but getting an error. To start, I changed the conf file to
storage:
dbPath: /var/mongodb/db
net:
bindIp: localhost
port: 27000
security:
authorization: enabled
I then run the mongod --dbpath /var/mongodb/db
command, which seems to successfully connect. I then run the command to create the new user so I can validate my work, but I get the error:
[js] Error: couldn't connect to server localhost:27000, connection attempt failed: SocketException: Error connecting to localhost:27000 (127.0.0.1:27000) :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed
Any ideas on how to correct?