I'm a new linux user, I am trying to setup mongodb on linux ubuntu 22.04 , I installed it using mongdoDB official documentation but it shows mongosh not working error
mongosh command not found
I have mongodb 6.0.5 version
I also had to uninstall and reinstall mongodb multiple times as it was showing
MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]
when i check the status by sudo systemctl status mongod
command so I tried to find the solution, and I found this . I also used sudo rm /usr/bin/mongo*
command as suggested by the user and I think this is where the problem begins.
On runnig mongosh
commmand it was showing
bash: /usr/bin/mongo: no such file or directory
after restarting my system now it is showing this
mongosh: command not found
I also tried installing mongosh from its official documentary it is still not working and showing the same error Do suggest some fixes