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.
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.
No comments:
Post a Comment
Do Write about the Blog and Welcome to the world where open source is every thing :-)