Created
March 16, 2022 09:52
-
-
Save tanvirstreame/d72aaeb90078b7ad63fd9eb90f2b31bd to your computer and use it in GitHub Desktop.
Mongo connection error solve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo service mongodb stop | |
| sudo rm /var/lib/mongodb/mongod.lock | |
| sudo mongod --repair --dbpath /var/lib/mongodb | |
| sudo mongod --fork --logpath /var/lib/mongodb/mongodb.log --dbpath /var/lib/mongodb | |
| sudo service mongodb start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment