socket exception mongodb code example
Example: mongodb socket exception
// This a MacOS solution
//will give a list of active running apps
sudo lsof -iTCP -sTCP:LISTEN -n -P
//see the PID no from the list we get above
sudo kill <mongo_command_pid>