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?