How to Install Elasticsearch on Windows 11

In this tutorial, we will guide you through the process of installing Elasticsearch on your Windows 11 machine. Elasticsearch is a powerful search and analytics engine that can be used to analyze large volumes of data in real-time.

Before proceeding with this tutorial, make sure that your Windows 11 machine meets the following system requirements:

Step 1: Download and Extract Elasticsearch

  1. Go to the Elasticsearch download page and download the latest version of Elasticsearch for Windows.
  2. Once the download is complete, navigate to the directory where Elasticsearch was downloaded.
  3. Right-click on the downloaded file and select "Extract All" to extract the Elasticsearch files to a new folder.

Step 2: Configure Elasticsearch Environment Variables

  1. Open the Windows search bar and type "env".
  2. Click on "Edit the system environment variables".
  3. Click on the "Environment Variables" button.
  4. Under "System Variables", click "New".
  5. Enter "JAVA_HOME" as the Variable name.
  6. Enter the path to the JRE installation directory as the Variable value (e.g., "C:\Program Files\Java\jre1.8.xx").

Step 3: Start Elasticsearch

  1. Open a Command Prompt window as an administrator.
  2. Navigate to the directory where Elasticsearch was extracted (e.g., "C:\Downloads\elasticsearch-x.xx.xx").
  3. Run the following command to start Elasticsearch: .\bin\elasticsearch.bat.

If Elasticsearch starts successfully, you will see log entries indicating that Elasticsearch has started listening on a specific port (e.g., listening for HTTP traffic on port 9200).

Step 4: Verify Elasticsearch Installation

  1. Open a web browser and navigate to http://localhost:9200.
  2. Elasticsearch should respond with a JSON object containing information about the Elasticsearch cluster.

Congratulations! You have successfully installed Elasticsearch on your Windows 11 machine. You can now start using Elasticsearch to analyze and search your data.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!