Loading...

How to Install Elasticsearch on CentOS 8

Simple.Predictable.Scalable

Easily deploy your favorite applications in seconds at an unbeatable price for your next projects.

Installing Elasticsearch on CentOS 8

Elasticsearch is a highly scalable open-source search and analytics engine that allows you to store, search, and analyze large amounts of data in near real-time. It is capable of handling diverse types of data and provides powerful full-text search capabilities.

Here is a step-by-step guide to installing Elasticsearch on CentOS 8:

  1. Start by updating your system's package index:
    sudo dnf update
  2. Install the Java Development Kit (JDK) if you don't have it already. Elasticsearch requires at least JDK 11. Run the following command to install OpenJDK 11:
    sudo dnf install java-11-openjdk-devel
  3. Add the Elasticsearch repository to your system:
    sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    sudo vi /etc/yum.repos.d/elasticsearch.repo
  4. Insert the following content into the file:
    [elasticsearch-7.x]
    name=Elasticsearch repository for 7.x packages
    baseurl=https://artifacts.elastic.co/packages/oss-7.x/yum
    gpgcheck=1
    gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
    enabled=1
    autorefresh=1
    type=rpm-md
  5. Save the file and exit the text editor.
  6. Install Elasticsearch:
    sudo dnf install elasticsearch-oss
  7. Edit the Elasticsearch configuration file:
    sudo vi /etc/elasticsearch/elasticsearch.yml
  8. Update the following configurations inside the file as per your requirements:
    • network.host: Set it to localhost if you want Elasticsearch to only accept connections from the local machine.
    • http.port: Set the port on which Elasticsearch will listen for HTTP traffic.

    Save the file and exit the text editor.

  9. Start and enable the Elasticsearch service:
    sudo systemctl start elasticsearch
    sudo systemctl enable elasticsearch

At this point, Elasticsearch should be successfully installed on your CentOS 8 system. You can now use its powerful features for searching and analyzing your data.

Refer A Friend
Get $25

Installing Elasticsearch
CentOS 8 Elasticsearch installation
Elasticsearch setup CentOS 8
Elasticsearch CentOS 8 tutorial
Elasticsearch installation guide
Elasticsearch installation CentOS 8 step by step
How to install Elasticsearch on CentOS 8
Elasticsearch configuration CentOS 8
Elasticsearch software installation
Elasticsearch CentOS 8 install

Why Customers Love Us

What our customers say about us

Ready To Get Started For Free?

Create your free account today.