Error: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017

Goodmorning everybody,
I try to install MongoDB on Debian11 by following this topic:
https://www.mongodb.com/docs/v5.0/tutorial/install-mongodb-on-debian/
But i have got the error error: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017 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              0.0.0.0:80              0.0.0.0:*       users:(("nginx",pid=506,fd=7),("nginx",pid=505,fd=7),("nginx",pid=504,fd=7))
LISTEN   0        128              0.0.0.0:22              0.0.0.0:*       users:(("sshd",pid=499,fd=3))
LISTEN   0        128                 [::]:22                 [::]:*       users:(("sshd",pid=499,fd=4))
root@mongoserver:~#

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

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.
Regards

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