Answered by : stormy-squirrel-phgimglqrsy0
#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)
Source : https://stackoverflow.com/questions/11583562/how-to-kill-a-process-running-on-particular-port-in-linux | Last Update : Tue, 28 Apr 20
Answered by : manish
sudo kill -9 `sudo lsof -t -i:9001`
Source : https://stackoverflow.com/questions/9346211/how-to-kill-a-process-on-a-port-on-ubuntu | Last Update : Sun, 10 May 20
Answered by : jittery-jackal-fqrse7isxvmo
npx kill-port 3000
Source : https://stackoverflow.com/questions/39322089/node-js-port-3000-already-in-use-but-it-actually-isnt | Last Update : Sun, 30 May 21
Answered by : wicked-wombat-ijd7s7pf95fi
kill -9 $(sudo lsof -t -i:8080)
Source : https://stackoverflow.com/questions/11583562/how-to-kill-a-process-running-on-particular-port-in-linux | Last Update : Sat, 30 May 20
Answered by : snippets
npx kill-port 8080
Source : | Last Update : Fri, 05 Mar 21
Answered by : zahid-hasan
sudo kill -9 `sudo lsof -t -i:9001`
Source : | Last Update : Sun, 22 Nov 20
Answered by : easy-elk
kill $(lsof -ti:3000)
Source : | Last Update : Thu, 23 Jan 20
Answered by : crazy-camel-7qesdu81et96
sudo kill -9 $(sudo lsof -t -i:8000)
Source : https://mr-khan.gitlab.io/linux/2018/05/02/kill-specific-port-on-linux.html | Last Update : Fri, 09 Apr 21
Answered by : wicked-wombat-ijd7s7pf95fi
sudo kill -9 $(sudo lsof -t -i:8080)
Source : https://stackoverflow.com/questions/11583562/how-to-kill-a-process-running-on-particular-port-in-linux | Last Update : Sat, 30 May 20
Answered by : enthusiastic-earthworm-7t7e0x3ni609
kill $(lsof -t -i:8080)
//kill port 8080
Source : https://stackoverflow.com/questions/11583562/how-to-kill-a-process-running-on-particular-port-in-linux | Last Update : Fri, 03 Apr 20