"Java.net.BindException: Address already in use: bind"의 두 판 사이의 차이

26번째 줄: 26번째 줄:
==같이 보기==
==같이 보기==
*[[스프링부트 포트 변경]]
*[[스프링부트 포트 변경]]
*[[Several ports (8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.]]


[[분류: Spring]]
[[분류: Spring]]

2016년 5월 19일 (목) 17:31 판

1 개요

Failed to start end point associated with ProtocolHandler ["http-nio-8080"]
java.net.BindException: Address already in use: bind

2 문제상황

  • 스프링부트 웹 시작시 오류 발생
2016-05-17 15:05:07.917 ERROR 11048 --- [           main] o.a.coyote.http11.Http11NioProtocol      : Failed to start end point associated with ProtocolHandler ["http-nio-8080"]

java.net.BindException: Address already in use: bind
	at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_77]
	at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_77]
	at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_77]
	at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.8.0_77]
	at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.8.0_77]
	at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:340) ~[tomcat-embed-core-8.0.33.jar:8.0.33]
... (생략)
→ 다른 프로그램이 8080 포트 사용중

3 해결방안

  • 해당 스프링부트 애플리케이션이 이미 실행중이면 중지
  • 다른 프로그램을 끄거나, 포트 변경
또는 스프링부트의 포트를 변경

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}