In this article let’s discuss about How to kill process running on port linux. Let’s go through the following methods without any delay.
#To list any process listening to the port 8080: lsof -i:8080 #To kill any process listening to the port 8080: kill $(lsof -t -i:8080) #or more violently: kill -9 $(lsof -t -i:8080)
If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!
Method 2 :
sudo kill -9 `sudo lsof -t -i:9001`
Hope the above solution works.
Realted Posts : How to list last commits git