기록
Home
  • 분류 전체보기 (187)
    • Programming (109)
      • JAVA (15)
      • Javascript (0)
      • 데이터베이스 (8)
      • React (7)
      • 프레임워크 (1)
      • Spring (11)
      • 웹(Web) (4)
      • 운영체제 (5)
      • 서버&네트워크 (6)
      • 자료구조 (0)
      • 알고리즘 (1)
      • 형상관리 (0)
      • 에러노트 (35)
      • 개발 툴 (15)
      • TEMP. (1)
    • Project (0)
      • 트러블슈팅 (0)
    • Personal (2)
      • 리뷰 (1)
      • 업무 (0)
    • Course (0)
      • 모든 개발자를 위한 HTTP 웹 기본 지식 (1)
      • 스프링 핵심 원리 - 기본편 (51)
      • 자바 ORM 표준 JPA 프로그래밍 - 기본편 (21)
    • TEMP (0)
Home
  • 분류 전체보기 (187)
    • Programming (109)
      • JAVA (15)
      • Javascript (0)
      • 데이터베이스 (8)
      • React (7)
      • 프레임워크 (1)
      • Spring (11)
      • 웹(Web) (4)
      • 운영체제 (5)
      • 서버&네트워크 (6)
      • 자료구조 (0)
      • 알고리즘 (1)
      • 형상관리 (0)
      • 에러노트 (35)
      • 개발 툴 (15)
      • TEMP. (1)
    • Project (0)
      • 트러블슈팅 (0)
    • Personal (2)
      • 리뷰 (1)
      • 업무 (0)
    • Course (0)
      • 모든 개발자를 위한 HTTP 웹 기본 지식 (1)
      • 스프링 핵심 원리 - 기본편 (51)
      • 자바 ORM 표준 JPA 프로그래밍 - 기본편 (21)
    • TEMP (0)
블로그 내 검색

기록

  • Programming/에러노트

    Address localhost:1099 is already in use

    2023. 3. 29.

    by. 개발도비

     

    명령프롬포트 창을 관리자권한으로 실행한다. 

     

     

    netstat -ano | find "1099"로 PID번호를 찾고 taskkill /f /pid 찾은번호 명령어로 프로세스를 종료 후 서버를 재실행한다.

     

    그런데 간혹 위의 명렁어로 1099포트를 사용중인 application을 찾아봐도 아무 결과도 나오지 않을 때가 있다. 이럴 때는 netsh interface ipv4 show excludedportrange protocol=tcp 명령어를 실행하여 예약된 포트를 확인해보자. 포트가 예약된 경우에는 해당 포트를 사용하지 못 한다. 

     

    1099포트가 "reserved"되어있다

     

    이런 경우에는 netsh int ipv4 set dynamicport tcp start=49152 num=16383 명령어를 통해 포트 예약을 취소할 수 있다. 

     

    관리자 권한에서 실행해야 한다

     

    이후 PC 재부팅을 하면 포트 예약이 취소된 것을 확인할 수 있고 1099 포트를 할당받아서 톰캣서버를 구동할 수 있다.

     

     

     

    Reference https://whatismyblank.tistory.com/13

     

    [Tomcat] Address localhost:1099 is already in use 에러 해결 | 1099 포트를 현재 사용하고 있지 않은 경우

    위와 같은 에러가 발생했다. netstat -an | find "1099" cmd에서 위와 같은 명령어로 1099 포트를 사용 중인 application을 찾아봐도 아무런 결과도 나오지 않았다. -> 현재 1099 포트를 사용하는 application 없음.

    whatismyblank.tistory.com

     

    'Programming > 에러노트' 카테고리의 다른 글

    A problem occurred configuring root project 'demo'.> Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.0. Required by:  (0) 2023.04.10
    Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.  (0) 2023.04.08
    cannot find a valid baseurl for repo base/7/x86_64  (0) 2022.11.23
    [GIT] fatal: unsafe repository ('~ㄱ경로' is owned by someone else)To add an exception for this directory, call:  (0) 2022.11.18
    [Tomcat/톰캣] The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path  (0) 2022.08.18

    댓글

    관련글

    • A problem occurred configuring root project 'demo'.> Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.0. Required by: 2023.04.10
    • Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 2023.04.08
    • cannot find a valid baseurl for repo base/7/x86_64 2022.11.23
    • [GIT] fatal: unsafe repository ('~ㄱ경로' is owned by someone else)To add an exception for this directory, call: 2022.11.18
    맨 위로
전체 글 보기
Tistory 로그인
Tistory 로그아웃
로그아웃 글쓰기 관리

Today

Total

Powered by ⓒ Kakao Corp.

Designed by Nana
블로그 이미지
개발도비

티스토리툴바