This script will kill the pid process that is responsible for keeping a port open. Use as follows to kill the process that corresponds to a given port:
./killport [PORT]
If the command killport
is not recognized, make it executable:
chmod +x ./killport