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 : clear-crab-p3ip3vsw14e3
sudo lsof -i :3000
kill -9 <PID>
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Thu, 18 Feb 21
Answered by : snippets
npx kill-port 8080
Source : | Last Update : Fri, 05 Mar 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 : ubaid-ullah
npx kill-port port_number
e.g,
npx kill-port 5001
Source : | Last Update : Tue, 13 Jul 21
Answered by : kirkpatrick-brown
{"tags":[{"tag":"p","content":"sudo lsof -i :3000 "},{"tag":"p","content":"kill -9 <pid><\/pid>"}]}
Source : | Last Update : Tue, 18 Apr 23
Answered by : asghar-abbas
brew tap devasghar/portkill && brew install devasghar/portkill/homebrew-portkill
# Usage
portkill 3000
portkill 3000,3001
Source : https://github.com/devasghar/homebrew-portkill | Last Update : Wed, 16 Feb 22
Answered by : vlad-severin
sudo lsof -i :5005
kill -15 <pid>
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Fri, 18 Aug 23
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