🍎 Backend/Spring

스프링부트) Web server failed to start. Port 8080 was already in use. 포트 충돌 시 에러 해결 방법 (MAC)

밈98 2024. 12. 31. 15:08

스프링부트를 사용하다가 포트충돌이 나는 경우가 있다.

Description:
 
Web server failed to start. Port 8080 was already in use. 
 
Action: 
 
Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.

 

해결 방법
lsof -i :8080

 

후에 PID밑의 번호 확인

kill -9 포트번호

 

포트 충돌시 에러를 해결할 수 있다!