sudo lsof -PiTCP -sTCP:LISTEN
특정 포트를 찾아 PID 알아내기 sudo lsof -i :3000
sudo lsof -i :3000
위에서 나온 PID를 명령어에 넣으면 포트 닫힘 sudo kill -9 PID
sudo kill -9 PID