Sunday, February 19, 2012

How to kill a process running on a known port


If you know a process running on a specific port and need to kill the process ?
here are the steps.
1) Find the process ID. (Here which runs on 9443)
?
1
2
3
4
5
fuser -n tcp 9443
or
lsof -w -n -i tcp:9443
Then you have the process ID. Kill the process with (Here ID = 6147)
?
1
kill -9 6147

No comments:

Post a Comment