0

When I type 'mongo' in terminal to run the mongo server. it doesn't run. It shows me the eroor : couldn't connect to server. exception: connection failed.

Then I tried to restart mongodb server by

$ sudo systemctl start mongod 
$ sudo systemctl status mongod

When I run the status command, I see it is showing

Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor prese
Active: failed (Result: exit-code)

N.B - I am running linux mint 20.1. And I have read all the answer and tried. But nothing worked for me.

Oh, I followed this guide to install, uninstall and reinstalling MongoDB. But still it is not working for me.

0 Answers0