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 : ever-dev
kill $(lsof -ti:3000,3001,8080)
Source : | Last Update : Thu, 04 Feb 21
Answered by : wideeyed-wildebeest-lm0m2cdvie7w
{"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 : Wed, 01 Mar 23
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 : 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 : wideeyed-wildebeest-lm0m2cdvie7w
{"tags":[{"tag":"textarea","content":"netstat -vanp tcp | grep 3000","code_language":"whatever"}]}
Source : https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | Last Update : Wed, 01 Mar 23
Answered by : you
lsof -i :<port-number>
Source : | Last Update : Tue, 19 Sep 23