kill the process running on port mac code example Example: kill the port in mac sudo lsof -i tcp:3000