"connect ECONNREFUSED 127.0.0.1:27017"

I encounter this error message when I try to establish a connection, and my operating system is Windows. I have already tried reinstalling multiple times, but I can’t resolve it

  • check to make sure mongo is actually running
  • check your Windows firewall settings
  • post your mongod.cfg