Skip to content

Install and Configure Elasticsearch on Rocky Linux 8

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

 

Elasticsearch is a powerful search engine based on the Lucene library. It’s widely used for full-text search and analysis. In this guide, we will walk you through the installation and configuration of Elasticsearch on Rocky Linux 8.

Step 1: Update Your System

Before installing Elasticsearch, it’s important to update your system:

sudo dnf update -y

Step 2: Install Java

Elasticsearch requires Java. You can install OpenJDK with the following command:

sudo dnf install java-11-openjdk -y

Step 3: Add the Elasticsearch Repository

Add the Elasticsearch GPG key:

Visual overview of Install and Configure Elasticsearch on Rocky Linux 8
Visual overview: Install and Configure Elasticsearch on Rocky Linux 8
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

Then, create a new repo file:

echo "[elasticsearch-8.x]
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=1" | sudo tee /etc/yum.repos.d/elasticsearch.repo

Step 4: Install Elasticsearch

Now you can install Elasticsearch with the following command:

sudo dnf install elasticsearch -y

Step 5: Start and Enable Elasticsearch Service

Start the Elasticsearch service and enable it to start on boot:

sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch

Step 6: Verify the Installation

To verify that Elasticsearch is running, use the following command:

curl -X GET "localhost:9200/"

You should see a JSON response with information about your Elasticsearch instance.

Key topics covered in Install and Configure Elasticsearch on Rocky Linux 8
Key topics covered in this NetCloud24 guide.

Step 7: Configure Elasticsearch (Optional)

You can configure Elasticsearch by editing the configuration file located at /etc/elasticsearch/elasticsearch.yml. Here, you can set cluster name, node name, network settings, and more.

Conclusion

You’ve successfully installed and configured Elasticsearch on Rocky Linux 8. You can now use it for your applications.

If you are looking for a reliable hosting solution for your applications, consider using . With Windows VPS, you can efficiently host your applications and ensure high performance. Whether you need or Windows VPSVirtual Private Servers, you will find a solution that fits your requirements.

For larger deployments or enterprise needs, explore Windows VPS or Virtual Private Server Hosting Windows. Whether you’re located in the UK, Italy, or elsewhere, Microsoft SQL VPS Windows and UK VPS Windows offer reliable hosting options. Visit Windows VPS Hosting UK to discover the best hosting solutions for your needs.

Install and Configure Elasticsearch on Rocky Linux 8
Install and Configure Elasticsearch on Rocky Linux 8
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.