Created
March 16, 2022 09:45
-
-
Save tanvirstreame/ac321a4c5118a57959ab8006b6cc03d4 to your computer and use it in GitHub Desktop.
Mongo db 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
connecting to: mongodb://127.0.0.1:27017/test?compressors=disabled&gssapiServiceName=mongodb | |
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused : | |
connect@src/mongo/shell/mongo.js:374:17 | |
sudo rm /var/lib/mongodb/mongod.lock | |
sudo mongod --dbpath /var/lib/mongodb/ --repair | |
sudo mongod --dbpath /var/lib/mongodb/ --journal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment