Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kill process on port

#list process running on specified port (here 80, change to your port)
sudo lsof -i:80

#kill process on specified port (here 80, change to your port)
sudo kill $(sudo lsof -t -i:80)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kill #process #port
ADD COMMENT
Topic
Name
5+1 =