If you’re running Elasticsearch on Windows, simply run bin\elasticsearch.bat instead.

Test it out by opening another terminal window and running the following:

curl 'http://localhost:9200/?pretty'

If you’re running Elasticsearch on Windows, you can download cURL from
http://curl.haxx.se/download.html. cURL
provides a convenient way to submit requests to Elasticsearch and
installing cURL enables you to copy and paste many of the examples in this
book to try them out.

This means that your Elasticsearch cluster is up and running, and we can
start experimenting with it.

A node is a running instance of Elasticsearch. A cluster is a group of
nodes with the same cluster.name that are working together to share data
and to provide failover and scale, although a single node can form a cluster
all by itself.

You should change the default cluster.name to something appropriate to you,
like your own name, to stop your nodes from trying to join another cluster on
the same network with the same name!

You can do this by editing the elasticsearch.yml file in the config/
directory and then restarting Elasticsearch. When Elasticsearch is running in
the foreground, you can stop it by pressing Ctrl-C; otherwise, you can shut
it down with the shutdown API: