Error listening for new connections on 127.0.0.1:27017: Address already in use code example
Example 1: Failed to set up listener: SocketException: Address already in use
sudo kill <mongo_command_pid>
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