Kill process by port
February 11, 2019
kill -9 $(lsof -t -i:[port])
kill
-9
immediately “hard”, or;-15
softly allowing cleanup
lsof
list open files (yes, an open port is a file!)-i
matching this internet address-t
terse
February 11, 2019
kill -9 $(lsof -t -i:[port])
kill
-9
immediately “hard”, or;-15
softly allowing cleanuplsof
list open files (yes, an open port is a file!)
-i
matching this internet address-t
terse