I am getting an error while i am trying to run mongosh

Specification : Ubuntu 21.04
MongoDB shell version v5.0.3

Is your mongod up and running on your local host on port 27017?

I tried mongod also it still error I can't figure out

What is the result when you tried mongod
How was mongod installed?If installed as service check service status
Check logfile if it is showing more details
You have to make sure mongod is up and running before you attempt connecting to it

Thank you for your help I solve this issue I make a change to /etc/mongod.conf file where I commented this #bindIp: then restart my computer is gonna work now.

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