kill process by port lunyx code example
Example 1: kill port
kill -9 $(lsof -t -i:8080)
Example 2: debian kill open port
fuser -k 3000/tcp //will kill that process.
kill -9 $(lsof -t -i:8080)
fuser -k 3000/tcp //will kill that process.