How To Install Elasticsearch On RHEL 8 | RedHat Tutorial

install elasticsearch on RHEL 8

Insight: How To Install Elasticsearch On RHEL 8 | RedHat 8 Tutorial

Elasticsearch is a distributed, analytics and RESTful search engine. Elasticsearch uses standard RESTful APIs and JSON.

In this tutorial, We will show you the easy way to install Elasticsearch on RedHat 8 operating system.

How To Install Elasticsearch On RHEL 8

At first you need to install Java in RHEL 8. If you haven’t installed it, you can follow the RedHat Java Installation tutorial.

Now,  let’s setup Elasticsearch repository in your RHEL 8. At first, Download and install the Elastic’s public signing key.

rpm --import

Open source version:

cat << EOF > /etc/yum.repos.d/elasticsearch.repo 
name=Elasticsearch repository for 7.x packages

Tutorial To Install Elasticsearch

Run the following command to install Elasticsearch (v7.x)

Elasticsearch Open source Version

yum install -y elasticsearch-oss

Run the following command to enable Elasticsearch to auto-start during system startup.

systemctl daemon-reload
systemctl enable elasticsearch
systemctl start elasticsearch

You can use the following curl command to check the HTTP request.

curl -X GET 'http://localhost:9200'

READ THIS ALSO  List Of 7 Best Remote Desktop Tools In Linux