ACM@UIUC TIL logo ACM@UIUC TIL

You can quickly kill everything running on a certain port with the following command.

sudo kill `sudo lsof -t -i:3000`

This gets a list of pids for all the processes and then kills them.

source