OpenSearch 컨테이너 실행 명령어

OpenSearch 컨테이너 실행 명령어이다. (OpenSearch 컨테이너가 없다면 설치)

docker run -d --name opensearch \
  -p 9200:9200 -p 9600:9600 \
  -e "discovery.type=single-node" \
  -e "OPENSEARCH_INITIAL_ADMIN_PASSWORD=LensLog2829@#" \
  -e "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" \
  opensearchproject/opensearch:2.12.0

설치 확인 명령어

curl -k -u admin:'LensLog2829@#' https://localhost:9200 
eomingyu@eomingyuui-MacBookPro ~ % curl -k -u admin:'LensLog2829@#' https://localhost:9200 
{
  "name" : "87e35106afb0",
  "cluster_name" : "docker-cluster",
  "cluster_uuid" : "Z00fdOH9SrWQSsKy3nu3Uw",
  "version" : {
    "distribution" : "opensearch",
    "number" : "2.12.0",
    "build_type" : "tar",
    "build_hash" : "2c355ce1a427e4a528778d4054436b5c4b756221",
    "build_date" : "2024-02-20T02:20:12.084014282Z",
    "build_snapshot" : false,
    "lucene_version" : "9.9.2",
    "minimum_wire_compatibility_version" : "7.10.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "The OpenSearch Project: https://opensearch.org/"
}

<aside> 📌

출처. GPT

</aside>

[Spring Boot] OpenSearch 연동