How to kill all processes that are using a specific port?
List all the process currently using the port number:
> lsof -i :<port>
Kill all of the process currently using the port number:
> kill $(lsof -ti :<port> List all the process currently using the port number:
> lsof -i :<port>
Kill all of the process currently using the port number:
> kill $(lsof -ti :<port>