How can I fix ECONNREFUSED error when the server is running

ECONNREFUSED means no process is listening at the given address and port.

We need 3 things:

  1. the content of the configuration file /etc/mongod.conf
  2. the output of the command
    ps -aef | grep [m]ongod
  3. the output of the command
    ss -tlnp
2 Likes