Showing posts with label Free a port. Show all posts
Showing posts with label Free a port. Show all posts

Monday, December 02, 2013

How to Find and Kill a Process that is Using a Particular Port

There may be a case when you want to Find and Kill a Process that is Using a Particular Port so that you can run some other application that utilizes that particular port.You can check the port used by the process from the command below. 

netstat -lpn |grep :80

==================================
tcp    0     0   :::80   :::*     LISTEN    8448/httpd
==================================

kill -9  8448

Now your port 80 is free.


*Note 8448 is the process id in above case.