close all process running on localhost port ubuntu code example
Example 1: kill port
kill -9 $(lsof -t -i tcp:8080)
Example 2: debian kill open port
fuser -k 3000/tcp //will kill that process.
kill -9 $(lsof -t -i tcp:8080)
fuser -k 3000/tcp //will kill that process.