Normally you get connection refused if no process is actively listening on that port.
So make sure the mongodb process is indeed listening on local:27017.
You can use something like netstat to verify that.
Normally you get connection refused if no process is actively listening on that port.
So make sure the mongodb process is indeed listening on local:27017.
You can use something like netstat to verify that.