Latest news
Home » PHP » how to find and kill a process using particular port

how to find and kill a process using particular port

Use the following command for stop a process using port 80 .This example is based on Ubuntu Linux operating system.

Commands need to run in terminal

sudo netstat -lpn |grep :80

tcp6       0      0 :::80                   :::*

LISTEN      1185/apache2

sudo kill 1185

Leave a Reply

x

Check Also

How to print Codeigniter upload error

if you want to display errors on upload functionality in codeigniter. Use the following function ...