본문 바로가기

전체 글

[ES] M2 Elastic search, Kibana 도커 설치 1. 도커 허브에서 elasticsearch 최신 버전 확인하기 https://hub.docker.com/_/elasticsearch elasticsearch - Official Image | Docker Hub Quick reference Supported tags and respective Dockerfile links Quick reference (cont.) What is Elasticsearch? Elasticsearch is a distributed, RESTful search and analytics engine capable of solving a growing number of use cases. As the heart of the Elastic hub.docker.com 더보기 dock.. 더보기
[Error] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]; for more information see validation exception[1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch. For more information see [https://www.elastic.co/guide/en/elasticsearch/reference/8.12/bootstrap-checks.html]bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]; for more inform.. 더보기
[ES] Elasticsearch .sh 파일로 실행 종료 관리 start.sh 파일 생성 및 편집 nano start.sh start.sh 파일 작성 bin/elasticsearch -d -p `cat es.pid` stop.sh 파일 생성 및 편집 nano stop.sh stop.sh 파일 작성 kill `cat es.pid` 권한 확인 ls -la -rwxrwxrwx. 파일 소유자 그룹 모든사용자 권한 변경 chmod 755 *.sh 권한 확인 ls -la 실행 ./start.sh 종료 /stop.sh 더보기
[ES] 우분투(Ubuntu)환경 Elastic search, Kibana 설치 https://www.elastic.co/kr/downloads Elastic 제품 다운로드 Elasticsearch, Logstash, Kibana 및 Beats를 무료로 다운로드하고 몇 분 내에 Elastic APM, Elastic App Search, Elastic Workplace Search 등을 시작하세요.... www.elastic.co Linux x86_64 오른쪽 마우스 클릭해서 링크 복사하기 엘라스틱 서치 설치 파일 다운로드 wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.12.1-linux-x86_64.tar.gz 압축해제 tar xfz elasticsearch-8.12.1-linux-x86_64.ta.. 더보기
[Error] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:46016} 엘라스틱 서치를 실행하고 다른 터미널을 켜서 curl localhost:9200 요청을 보냈을 때 Elasticsearch 로그에 찍힌 내용 [2024-02-19T06:07:27,332][WARN ][o.e.h.n.Netty4HttpServerTransport] [DataRAG]received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:56004} 해당 경고 메시지는 HTTPS 채널을 통해 기대하지 않은 평문 HTTP 트래픽을 받았다는 것을 나타냄 일반적으로 보안 문제로 간주되며 Elasticsearch가 .. 더보기
[Springboot] MockMvc를 이용해서 테스트하기 1. 용어 정리 - 목(Mock): 테스트를 위해서 만든 모형 - 모킹(Mocking): 테스트를 위해 실제 객체와 비슷한 모의 객체를 만드는 것 - 목업(Mock-Up): 모킹한 객체를 메모리에서 얻어내는 과정 2. 서블릿 컨테이너 모킹 Controller를 테스트할 때 서블릿 컨테이너를 모킹을 위해 @WebMvcTest 또는 @AutoConfigureMockMvc 사용함 스프링 3.2부터 스프링 프레임워크는 스프링 MVC를 모킹하여 웹 애플리케이션을 테스트하는 아주 유용한 기능을 제공한다. 이 기능으로 실제 서블릿 컨테이너에서 컨트롤러를 실행하지 않고도 컨트롤러에 HTTP 요청을 할 수 있다. 스프링 Mock MVC 프레임워크는 애플리케이션을 마치 서블릿 컨테이너에서 실행하는 것처럼 스프링 MVC를 .. 더보기
[Springboot] Spring Rest Docs 적용(1) - build.gradle 빌드 구성 1. Spring Rest Docs? Spring 기반의 RESTful API 프로젝트에서 API 문서를 생성하기 위한 도구 2. 프로젝트 빌드 구성 // build.gradle plugins { (1) id "org.asciidoctor.jvm.convert" version "3.3.2" } configurations { asciidoctorExt (2) } dependencies { asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor:{project-version}' (3) testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:{project-ve.. 더보기
[error] 다음 경로는 .gitignore 파일 중 하나 때문에 무시합니다 git add . 다음 경로는 .gitignore 파일 중 하나 때문에 무시합니다: build 힌트: Use -f if you really want to add them. 힌트: Turn this message off by running 힌트: "git config advice.addIgnoredFile false" 찾아보니 git add * 명령은 gitignore된 것들 까지 스테이징에 올린다는 명령어라서 발생하는 에러라고 하는데 git add .이나 git add * 이나 같은 에러가 발생됨 git add * 다음 경로는 .gitignore 파일 중 하나 때문에 무시합니다: build 힌트: Use -f if you really want to add them. 힌트: Turn this message.. 더보기