User Tools

Site Tools


fakplpom

Find (and kill) process locking port 3000 on Mac and Linux

1. You can try netstat

netstat -vanp tcp | grep 3000

2. For macOS El Capitan and newer (or if your netstat doesn't support -p), use lsof

lsof -i tcp:3000 

3. For Centos 7 use:

netstat -vanp --tcp | grep 3000

Then you can kill the process like that:

kill {pid_of_process}
fakplpom.txt · Last modified: 2023/09/14 06:06 by 127.0.0.1