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 : 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 : beautiful-barracuda-nhrqdd10o2qy
npx kill-port 3000
Source : | Last Update : Sat, 19 Jun 21
Answered by : amused-angelfish-ald77w2llilu
sudo lsof -i :8080
kill -9 <PID>
Source : | Last Update : Tue, 25 Jan 22
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 : smiling-snake-awblx90irq5z
sudo lsof -i :<port>
kill -9 <PID>
Source : https://www.codegrepper.com/code-examples/shell/check+what+is+running+on+port+mac | Last Update : Thu, 22 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 : enthusiastic-elk-ytb7i8q2y9n9
{"tags":[{"tag":"textarea","content":"lsof -i tcp:3000","code_language":"whatever"}]}
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Sat, 25 Mar 23