How do I install Elasticsearch 8.5 to Windows?

Step 1

elastic.co/downloads/past-releases#elasticsearch

Step 2

2023-07-03--05-14-06

Step 3

2023-07-03--05-15-18

Step 4

Extract it to a permanent location (C:\server\elasticsearch\8.5.3 in my case).

Step 5

I have moved the config subfolder to my convenient location: C:\server\elasticsearch\config.

Step 6

Setup the ES_HOME and ES_PATH_CONF environment variables:
2023-07-03--05-20-05
elastic.co/guide/en/elasticsearch/reference/8.5/zip-windows.html#windows-service-settings

Step 7

How did I limit the memory consumption of Elasticsearch 8 in Windows 10?

Step 8

My contents for %ES_PATH_CONF%\elasticsearch.yml:

bootstrap.memory_lock: false
cluster.name: elasticsearch
http.port: 9200
node.roles: ["data", "ingest", "master"]
node.name: DMITRII
path.data: E:\server\elasticsearch\data
path.logs: C:\server\log\elasticsearch
transport.port: 9300
xpack.license.self_generated.type: basic
xpack.security.enabled: false

Step 9

Check the installation by running %ES_HOME%\bin\elasticsearch.bat.

Step 10

Install the Windows service:

%ES_HOME%/bin/elasticsearch-service.bat install

2023-07-03--05-21-37
elastic.co/guide/en/elasticsearch/reference/8.5/zip-windows.html#windows-service

Step 11

Start the service.

Step 12

The Elasticsearch's web interface should be available here: http://localhost:9200
2023-07-03--05-46-14

Step 13

How did I fix «Fielddata access on the _id field is disallowed» in Magento 2.4.7-beta1 and Elasticsearch 8?

How do I run Elasticsearch 7 and 8 simultaneously on Windows (for different Magento versions)?