.NET Core

How To Install Elasticsearch and Java SDK On Windows

In this article, we will show how to install Elasticsearch on Windows operating system.

Versions:

  • Elasticsearch 7.13.2

Prerequisites:

Elasticsearch requires Java 8 (or later) installation to run. If you haven’t installed Java yet, Don’t worry, we will set it up in this article.

How to Install Java on Windows:

This step gives you an understanding of how to set up Java on the Windows operating system. Download java8 version from oracle official downloads. Where you can find several versions and operating systems.

Download the above .exe file.

Install Java8 On Windows:

Go to your downloads folder, and double click on the .exe file.

Click on Next > to proceed :

If you want to change JDK installing location then choose your custom location by clicking on the Change button and then click on Next and Then the setup process continuing…

We can confirm that by seeing the above screen, Java 8 has been installed successfully on your Windows Operating system.

Now, this is the time to setup JAVA_HOME on windows,

In this step, I am going to show you how to set  JAVA_HOME on Windows10 operating system.

  • It will take several steps to create  JAVA_HOME.
    Open Environment Variables :
    Search for Advanced System Settings in the Search box like below:by selecting the above Advanced System Settings, you can see the below System Properties window.
    Click on Environment Variables >Click on the New button under the System variables session to create JAVA_HOME :


    Enter variable name as “JAVA_HOME”, give variable value as your JDK path, and click Ok.

    Test :
    Open the command prompt and execute the below  commands:

Install Elasticsearch on Windows

Firstly, Follow the below steps to download and install Elasticsearch.

  1. Get Elasticsearch:

    Download the latest Elasticsearchthe from the official website. Usually, it will be available as a .zip file.

  2. Install Elasticsearch

    The elasticsearch-x.x.x.zip file will be download, upon clicking the above-highlighted URL. Extract the downloaded file; then you would see the below folder structure.

    /bin folder contains all binaries required to run Elasticsearch.

    /config folder contains all configuration properties related to Elasticsearch, Java, and user settings.

  3. Start Elasticsearch:Once the downloading process completed; now we can start the Elasticsearch from the command line.
    D:\Soft\elasticsearch-7.13.2\bin>elasticsearch

    If everything went well, the command line terminal would display output similar to the following:

Elasticsearch loads the configuration details from an elasticsearch.yml file while running it. If you wanted to change the configurations; you always free to change them from the elasticsearch.yml file or you can even provide parameters while executing the elasticsearch.exe file.

Checking Elasticsearch is running:

Secondly, You can test that your Elasticsearch node is running by sending an HTTP request to port 9200 on localhost:

I hope you guys understand how I can do this.  Let me know if you face any difficulties.

You can watch my previous blog here.

Happy Coding {;} ????

Nayan Raval

Nayan Raval is a MEAN Stack .Net Developer has extensive experience with designing and developing enterprise-scale applications. Key Areas Of Expertise: • ASP.NET Core MVC • ASP.NET Core Web API • C# • ASP.NET MVC 5 • Angular All versions • HTML5 • CSS3 / SCSS • Bootstrap • JavaScript • Azure • JQuery Databases and related • Microsoft SQL server MSSQL • PostgreSQL • Entity Framework (EF) • LINQ UI Frameworks • Kendo UI • Telerik • JQuery UI • Prime NG and Material UI API Integration • SignalR • DateDog • Twilio Voice Call And Message • Stripe • SendGrid (Email Camping) • Checkr • Zoom Video Call • Auth0 • Elastic Search • Quartz - Scheduler • JWT Token • Google Calendar

Recent Posts

Testing hk

Testing

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

Operation

Testing

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

TETS NEW

test

2 years ago