3 / 3
Dec 2024

Hi,
I’m using MacOS Sonoma 14.6.1 & am installing mongodb-community@8.0 with BREW. When I try to run MONGOSH I get an error:

MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017

Terminal code snippet below. Does anyone have a list of steps to resolve? Thanks!

SA2020 ~ % brew services start mongodb-community@8.0 ==> Successfully started `mongodb-community` (label: homebrew.mxcl.mongodb-community) SA2020 ~ % mongosh Current Mongosh Log ID: 67537fbee72aeb5bc67df807 Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.3.4 MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017