how to kill a process at a port linux code example
Example 1: kill process on port
#list process running on specified port (here 80, change to your port)
sudo lsof -i:80
#kill process on specified port (here 80, change to your port)
sudo kill $(sudo lsof -t -i:80)
Example 2: kill a process at a port
fuser -k 8080/tcp