Error: MongoNetworkError: connect ECONNREFUSED

Goodmorning everybody,
I try to install MongoDB on Debian11 by following this topic:
But i have got the error error: MongoNetworkError: connect ECONNREFUSED when i try to start the mongo.service
here is my mongod.conf

and the result of the commands:

root@mongoserver:~# ps -aef | grep [m]ongod
root@mongoserver:~# ss -tlnp
State    Recv-Q   Send-Q     Local Address:Port       Peer Address:Port   Process
LISTEN   0        511        *       users:(("nginx",pid=506,fd=7),("nginx",pid=505,fd=7),("nginx",pid=504,fd=7))
LISTEN   0        128        *       users:(("sshd",pid=499,fd=3))
LISTEN   0        128                 [::]:22                 [::]:*       users:(("sshd",pid=499,fd=4))

Anyone can helping me, i’m newbie with mongo.

Your mongod is not up
Check status of your service
Also check mongod.log for errors

1 Like

Thanks a lot, finally i uninstall and reinstall the package and my server is up.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.