bash kill process that use port code example
Example 1: kill all process at port
lsof -ti tcp:2525 | xargs kill
Example 2: stop a process running on a port
# Print PID of process bound on that port.
fuser 8080/tcp
# Kill that process
fuser -k 8080/tcp