How do I install Elasticsearch 7.17.6 to Windows?

Step 1

Download the distributive from here: elastic.co/guide/en/elasticsearch/reference/7.17/zip-windows.html

Step 2

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

Step 3

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

Step 4

Setup the %ES_PATH_CONF%\elasticsearch.yml:

bootstrap.memory_lock: false
cluster.name: elasticsearch
http.port: 9200
node.data: true
node.ingest: true
node.master: true
node.max_local_storage_nodes: 1
node.name: DMITRY-PC
path.data: E:\server\elasticsearch\data
path.logs: C:\server\elasticsearch\log
transport.tcp.port: 9300
xpack.license.self_generated.type: basic
xpack.security.enabled: false

Step 5

Install the Windows service:

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

elastic.co/guide/en/elasticsearch/reference/7.17/zip-windows.html#windows-service

Step 6

The Elasticsearch's web interface should be available here: http://localhost:9200

How did I install Elasticsearch 6 for Magento 2.3 to Debian 9?

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