Java Spring Boot

현재 사용중인 Port 확인 / 해제하기

Santino 2023. 11. 27. 18:11

*상황 : 로컬서버 실행을 하려고 하니, 아래와 같이 이미 Port가 사용 중이라고 표기되는 경우

 

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 PID번호 입력 -> 해지 됨 
          => 다시 로컬서버 실행 => 동작함.