docker로 elasticsearch와 kibana를 구동 후, 인터넷 url로 접속 시
curl: (56) Recv failure: Connection reset by peer
에러가 발생한다면,
docker 컨테이너 외부에서의 요청을 받지 못하는 것이다.elasticseach.yml 파일의 network.bind_host를 localhost가 아닌 0.0.0.0으로 설정하고kibana.yml 파일의 server.host를 0.0.0.0 으로 설정하고 구동한다면 컨테이너 외부 호스트에서도 접속 가능할 것이다.
번외. curl test
elasticsearch가 실행되고 있는 local환경에서
curl -XGET -u elastic:{2 단계에서 생성한 비밀번호} http://localhost:9200/_cluster/health?pretty
명령어로, 접속을 할 수 있는지 확인한다.
참고자료:
https://enghqii.tistory.com/56
https://superuser.com/questions/949428/whats-the-difference-between-127-0-0-1-and-0-0-0-0
'기타' 카테고리의 다른 글
Intellij에서 Git Merge하기 (0) | 2021.01.23 |
---|