Error: couldn't connect to server 127.0.0.1:27017

Running netstat -an | grep 27017 doesn’t return anything. This is after I verified that the brew service is running.

If I run mongod --dbpath /users/{username}/data/db/ after creating those directories I do get a return

Screen Shot 2020-02-19 at 7.16.20 PM

2 Likes