elasticsearch 8.2.3 install# DataBase/Elasticsearch2022. 6. 16. 08:57
Table of Contents
728x90
반응형
다운로드
https://www.elastic.co/kr/downloads/elasticsearch
설치환경
[darksharavim.tistory.com]cat /etc/redhat-release
Rocky Linux release 8.6 (Green Obsidian)
엘라스틱서치 GPG키 및 레포지토리 추가
[darksharavim.tistory.com]rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
[darksharavim.tistory.com]vi /etc/yum.repos.d/elasticsearch.repo
# 아래내용 추가
[elasticsearch]
name=Elasticsearch repository for 8.x packages
baseurl=https://artifacts.elastic.co/packages/8.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0
autorefresh=1
type=rpm-md
엘라스틱서치 설치
[darksharavim.tistory.com]yum -y install --enablerepo=elasticsearch elasticsearch
Rocky Linux 8 - AppStream 2.7 MB/s | 8.4 MB 00:03
Rocky Linux 8 - BaseOS 3.0 MB/s | 2.6 MB 00:00
Rocky Linux 8 - Extras 4.6 kB/s | 11 kB 00:02
Elasticsearch repository for 8.x packages 7.9 MB/s | 9.9 MB 00:01
종속성이 해결되었습니다.
====================================================================================================================
꾸러미 구조 버전 레포지터리 크기
====================================================================================================================
설치 중:
elasticsearch x86_64 8.2.3-1 elasticsearch 502 M
연결 요약
====================================================================================================================
설치 1 꾸러미
총계 내려받기 크기: 502 M
설치된 크기 : 1.0 G
꾸러미 내려받기 중:
elasticsearch-8.2.3-x86_64.rpm 9.9 MB/s | 502 MB 00:50
--------------------------------------------------------------------------------------------------------------------
합계 9.9 MB/s | 502 MB 00:50
Elasticsearch repository for 8.x packages 37 kB/s | 1.7 kB 00:00
GPG키 0xD88E42B4 가져오는 중:
사용자 ID : "Elasticsearch (Elasticsearch Signing Key) <dev_ops@elasticsearch.org>"
지문: 4609 5ACC 8548 582C 1A26 99A9 D27D 666C D88E 42B4
출처 : https://artifacts.elastic.co/GPG-KEY-elasticsearch
키 가져오기에 성공했습니다
연결 확인 실행 중
연결 확인에 성공했습니다.
연결 시험 실행 중
연결 시험에 성공했습니다.
연결 실행 중
준비 중 : 1/1
스크립트릿 실행 중: elasticsearch-8.2.3-1.x86_64 1/1
Creating elasticsearch group... OK
Creating elasticsearch user... OK
설치 중 : elasticsearch-8.2.3-1.x86_64 1/1
스크립트릿 실행 중: elasticsearch-8.2.3-1.x86_64 1/1
--------------------------- Security autoconfiguration information ------------------------------
Authentication and authorization are enabled.
TLS for the transport and HTTP layers is enabled and configured.
The generated password for the elastic built-in superuser is : HGcA*u-K24E4me4wrxch
If this node should join an existing cluster, you can reconfigure this with
'/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token <token-here>'
after creating an enrollment token on your existing cluster.
You can complete the following actions at any time:
Reset the password of the elastic built-in superuser with
'/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic'.
Generate an enrollment token for Kibana instances with
'/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana'.
Generate an enrollment token for Elasticsearch nodes with
'/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node'.
-------------------------------------------------------------------------------------------------
### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd
sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
### You can start elasticsearch service by executing
sudo systemctl start elasticsearch.service
[/usr/lib/tmpfiles.d/elasticsearch.conf:1] Line references path below legacy directory /var/run/, updating /var/run/elasticsearch → /run/elasticsearch; please update the tmpfiles.d/ drop-in file accordingly.
확인 중 : elasticsearch-8.2.3-1.x86_64 1/1
설치되었습니다:
elasticsearch-8.2.3-1.x86_64
완료되었습니다!
엘라스틱서치 설정
[darksharavim.tistory.com]cat /etc/elasticsearch/elasticsearch.yml | grep -v '#'
cluster.name: darksharavim
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
cluster.initial_master_nodes: ["node-1"]
실행 및 확인
[darksharavim.tistory.com]systemctl start elasticsearch
[darksharavim.tistory.com]systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2022-06-17 11:31:59 KST; 2min 39s ago
Docs: https://www.elastic.co
Main PID: 3964 (java)
Tasks: 60 (limit: 100878)
Memory: 8.4G
CGroup: /system.slice/elasticsearch.service
├─3964 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -Djava.security.manager=allow -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.en>
└─4256 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller
6월 17 11:31:50 localhost.localdomain systemd[1]: Starting Elasticsearch...
6월 17 11:31:59 localhost.localdomain systemd[1]: Started Elasticsearch.
접속
[darksharavim.tistory.com]curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic https://localhost:9200
Enter host password for user 'elastic':
{
"name" : "node-1",
"cluster_name" : "darksharavim",
"cluster_uuid" : "x37n9m80T5yVFN_KMjvWwg",
"version" : {
"number" : "8.2.3",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "9905bfb62a3f0b044948376b4f607f70a8a151b4",
"build_date" : "2022-06-08T22:21:36.455508792Z",
"build_snapshot" : false,
"lucene_version" : "9.1.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
[darksharavim.tistory.com]
728x90
반응형
'# DataBase > Elasticsearch' 카테고리의 다른 글
logstash 8.2.3 install (0) | 2022.06.17 |
---|---|
[elasticsearch]bootstrap check failure (0) | 2022.06.16 |
elasticsearch - disk usage exceeded (0) | 2021.04.26 |
apache error log logstash grok pattern (0) | 2021.04.14 |
[trouble shooting]master_not_discovered_exception (0) | 2021.04.07 |
@다크쉐라빔 :: 다크쉐라빔의 주절주절
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!