Difference between revisions of "Elastic search install"
Jump to navigation
Jump to search
(Created page with "== ES installation == === Install using the RPM manager === wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.9.1-x86_64.rpm wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.9.1-x86_64.rpm.sha512 shasum -a 512 -c elasticsearch-8.9.1-x86_64.rpm.sha512 sudo rpm --install elasticsearch-8.9.1-x86_64.rpm sudo rpm -e elasticsearch-8.9.1-x86_64.rpm === Install using yum installer === sudo rpm --import https://pack...") |
|||
Line 1: | Line 1: | ||
== ES installation == | == ES installation == | ||
=== Install using yum installer === | |||
sudo rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch | |||
sudo sh -c 'curl https://gist.githubusercontent.com/nl5887/b4a56bfd84501c2b2afb/raw/elasticsearch.repo >> /etc/yum.repos.d/elasticsearch.repo' | |||
sudo yum install -y elasticsearch | |||
=== Install using the RPM manager === | === Install using the RPM manager === | ||
Line 8: | Line 13: | ||
sudo rpm --install elasticsearch-8.9.1-x86_64.rpm | sudo rpm --install elasticsearch-8.9.1-x86_64.rpm | ||
sudo rpm -e elasticsearch-8.9.1-x86_64.rpm | sudo rpm -e elasticsearch-8.9.1-x86_64.rpm | ||
== Configuring ES == | == Configuring ES == |
Revision as of 14:56, 24 August 2023
ES installation
Install using yum installer
sudo rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch sudo sh -c 'curl https://gist.githubusercontent.com/nl5887/b4a56bfd84501c2b2afb/raw/elasticsearch.repo >> /etc/yum.repos.d/elasticsearch.repo' sudo yum install -y elasticsearch
Install using the RPM manager
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.9.1-x86_64.rpm wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.9.1-x86_64.rpm.sha512 shasum -a 512 -c elasticsearch-8.9.1-x86_64.rpm.sha512 sudo rpm --install elasticsearch-8.9.1-x86_64.rpm sudo rpm -e elasticsearch-8.9.1-x86_64.rpm
Configuring ES
sudo chkconfig elasticsearch on
sudo nano /etc/elasticsearch/jvm.options -Xms256m -Xmx256m
sudo service elasticsearch start
curl 'http://localhost:9200/app/_count?pretty&q='y