Ops/OpenSearch
OpenSearch Engine - install
mkdir.chandler
2023. 12. 19. 00:00
반응형
OpenSearch Engine - install
OS 환경
- Amazon Linux 2
java8 설치
yum install java-1.8.0-openjdk
yum install java-1.8.0-openjdk-devel
readlink -f /usr/bin/javac
환경 변수 등록
echo "" >> >> /etc/profile
echo "java_home path" >> >> /etc/profile
echo "export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-1.amzn2.0.1.x86_64" >> /etc/profile
echo "export PATH=$PATH:$HOME:$JAVA_HOME/bin" >> /etc/profile
수정한 파일 적용
source /etc/profile
확인
echo $JAVA_HOME
OpenSearch 설치
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.2-x86_64.rpm
rpm --install elasticsearch-7.10.2-x86_64.rpm
java heap 메모리 설정
vim /etc/elasticsearch/jvm.options
# -Xms4g
# -Xmx4g
실행
systemctl start elasticsearch.service
netstat -nl | grep -E -i "proto|9200|9300"
실행 확인
curl -XGET 127.0.0.1:9200
by mkdir-chandler
728x90
반응형