Failed to set up listener: SocketException: Address already in use mongo using compass code example
Example 1: Failed to set up listener: SocketException: Address already in use
sudo lsof -iTCP -sTCP:LISTEN -n -P
Example 2: Failed to set up listener: SocketException: Address already in use
sudo lsof -iTCP -sTCP:LISTEN -n -P
sudo kill <mongo_command_pid>
mongod