debian kill open port code example
Example 1: kill port
kill -9 $(sudo lsof -t -i:8080)
Example 2: debian kill open port
fuser -k 3000/tcp //will kill that process.
Example 3: kill process on port
lsof -i:3000 // Change 3000 to whatever your port is!
sudo kill 9 // Change to the Pid number the above command returns