0

After installing Mongo DB in ubuntu os, /tmp/mongodb.sock files are created. I wanted to know the purpose of this file.

After installing MongoDB, I tried to setup authentication following https://www.mongodb.com/docs/manual/tutorial/configure-scram-client-authentication/

Following step 4 from above link, I executed command db.adminCommand( { shutdown: 1 } );

After running above command, I was n't able to connect to MongoDB instance. From many sites, I got the fix for this. I just remove /tmp/mongodb-27017.sock file.

Then after restarting mongo, Everything started working. Can anyone explain use of /tmp/mongodb-27017.sock file?

  • Does this answer your question? [What are .sock files and how to communicate with them](https://stackoverflow.com/questions/52599848/what-are-sock-files-and-how-to-communicate-with-them) – ray Feb 22 '23 at 00:38

0 Answers0