May be your mongodb is not up
What does sudo systemctl status mongodb shows?
You can check mongodb.log also
Under installed dir/bin you can check what is your binary mongodb or mongod
May be your mongodb is not up
What does sudo systemctl status mongodb shows?
You can check mongodb.log also
Under installed dir/bin you can check what is your binary mongodb or mongod