Answered by : quaint-quoll-33ah6rs98xzg
#First run this, to get port information (with the port you want to kill)
sudo lsof -i :3000
#Then run this, with <PID> replaced by the value in the column returned by previous command.
kill -9 <PID>
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Tue, 21 Jul 20
Answered by : alberto-peripolli
sudo lsof -i tcp:3000
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Wed, 15 Apr 20
Answered by : snippets
npx kill-port 8080
Source : | Last Update : Fri, 05 Mar 21
Answered by : justin-swart
kill -9 $(lsof -ti:3000)
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Tue, 02 Nov 21
Answered by : agungwas
kill -9 $(sudo lsof -ti:3000) # force kill one port
kill -9 $(sudo lsof -ti:3000,3001) # force kill multiple port
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Tue, 06 Sep 22
Answered by : awful-anaconda-831ne8qfk9ul
kill -9 $(lsof -ti:3000,3001)
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Thu, 03 Feb 22
Answered by : bewildered-bat-dlzvnsjx3hk9
//Find Pid
sudo lsof -i :3000
//kill
kill -9 <pid>
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Thu, 20 May 21
Answered by : ubaid-ullah
npx kill-port port_number
e.g,
npx kill-port 5001
Source : | Last Update : Tue, 13 Jul 21
Answered by : justin-swart
kill -9 <PID>
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Wed, 06 May 20
Answered by : you
lsof -i :8080 | grep LISTEN | awk '{print $2}' | xargs kill -9
Source : | Last Update : Tue, 19 Sep 23