# [ERROR] Web server failed to start. Port 80 was already in use.

2024. 12. 13. 16:45개발/클라우드

Identify and stop the process that's listening on port 80 or configure this application to listen on another port.


📌 본 포스팅은 스프링에서 포트가 이미 사용중일때 포트를 중지하는 내용을 다룹니다.

🌞 2024.12.13 Fri

1. 포트 확인후 kill, pm2 kill

    netstat -ano |grep 80 ## window
    lsof -i tcp:80 ## MAC, Linux PID 확인
    sudo kill -9 PID 번호

하지만 node 가 계속 실행 중이어서 port 가 무한하게 생성됨..
pm2 kill 로 서버 중지 후 스프링 정상작동 확인