Linux: how to kill process listening to the port

To list any process listening to the port 9000

$lsof -i:9000

To kill any process listening to the port 9000

$kill -9 $(lsof -t -i:9000)

Viet Luu has written 146 articles

Leave a Reply