Killing Process By Port

From StackOverflow.

kill $(lsof -t -i:$portnum)