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 180 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply