How to kill a process running on a known port

Feb 19, 2012 · 1 minute read · Comments


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

comments powered by Disqus