Terminate a process running on a port
Last updated:
You’ve started a service on one of your terminals on a certain port and want to make room for a new service on that port (without going through all your terminal windows ;)).
To free port 3000
just run:
lsof -ti:3000 | xargs kill -9