how to kill ports linuc code example
Example 1: ubuntu stop process on port
sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`
Example 2: 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)