오류 : Web server failed to start. Port 8080 was already in use.

2024. 7. 24. 11:50·🌥️Cloud Study🌥️/TroubleShooting
***************************
APPLICATION FAILED TO START
***************************

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.

AWS에서 인스턴스 유형을 변경하느라 중단하고 다시 올린 다음 Spring Boot 기반의 웹서버를 구동했더니 위와 같은 오류가 출력되었다.

 

# application.porperties 파일에 추가하거나 수정 :
server.port=9090

# 커맨드 라인에서 설정 :
java -jar your-application.jar --server.port=9090

# Gradle을 사용하는 경우
./gradlew bootRun -Pargs=--server.port=9090

# Maven을 사용하는 경우
mvn spring-boot:run -Dspring-boot.run.arguments=--server.port=9090

기존 포트를 변경하기 위해서는 application.porperties 파일 또는 application.yaml 파일을 위와 같이 수정해주면 되는데,
사실 아래의 .jar 파일을 실행할 때 명시적으로 지정해 주는 방법이 제일 빠르고 편하다.

'🌥️Cloud Study🌥️ > TroubleShooting' 카테고리의 다른 글

[ Ansible ] DEPRECATION WARNING 해결 방법  (0) 2024.08.22
[ Jenkins ] 파이프라인 배포 : No such file or directory  (0) 2024.08.21
[ Prometheus ] active failed 오류 해결  (0) 2024.08.09
[ NHN Cloud ] 파이프라인 배포 문제 해결 - 2 (502 Bad Gateway)  (0) 2024.08.08
[ NHN Cloud ] 파이프라인 배포 문제 해결  (0) 2024.08.08
'🌥️Cloud Study🌥️/TroubleShooting' 카테고리의 다른 글
  • [ Jenkins ] 파이프라인 배포 : No such file or directory
  • [ Prometheus ] active failed 오류 해결
  • [ NHN Cloud ] 파이프라인 배포 문제 해결 - 2 (502 Bad Gateway)
  • [ NHN Cloud ] 파이프라인 배포 문제 해결
L_Chae
L_Chae
🎮😻🤓🖥✨
  • L_Chae
    Cherish
    L_Chae
  • 전체
    오늘
    어제
    • 분류 전체보기
      • 🌥️Cloud Study🌥️
        • AWS
        • NHN
        • KT
        • Microsoft (Azure 900)
        • TroubleShooting
        • IaC
        • Etc
      • STUDY
        • English
        • Japanese
        • 개인정보보호 관련
      • 초등학교 AI 교육 진행
        • 2024학년도 1학년-2학년
        • 2025학년도 4학년
      • 2024 KDT 📕
        • Lecture
        • Study 📗
        • Study-JAVA
        • Project
        • etc
      • INTERLUDE ✦
        • 2022 SYSTEM STUDY
        • 2022 Winter Study
        • 2023 AutoMobility STUDY
        • 2023 Summer Study (CPPG)
        • 2023 Reversing STUDY
        • etc
      • Private🔒
        • MacBook 💻
        • Screenshot 🩷
        • Photo 🖼️
        • FFXIV - Backup 🎮
        • Tistory
      • PBL 📗
        • 논문 스터디
        • Backup
      • Project 🖤
        • 2022-2) 개인정보보호 소학회
        • 2022-2) winter GURU2 - iOS
        • 2023-1) PBL 3
        • 2023-2) PBL 4
        • 2024-1) SW-AI교육 실습 일지
      • CTF 🚩
        • 2022
        • 2023
      • News scrap 📰
        • 2022
        • 2023
      • 2022 공부 로그 🐯
      • 2023 공부 로그🐰
  • 블로그 메뉴

    • 글쓰기
    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    ansible
    deprecation warning
    JLPT N1
    jlpt n1 도전기
    멱등성
    ansible galaxy
    JLPT
    content collection
    N1
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
L_Chae
오류 : Web server failed to start. Port 8080 was already in use.
상단으로

티스토리툴바