How to run Elasticsearch on localhost?

Please follow the following step:

  • Download and install Elasticsearch
  • Go to the bin directory (elasticsearch-7.16.2\bin) in the Elasticsearch installation folder
  • Run the elasticsearch command
  • Verify that Elasticsearch is running by going to the address in your web browser or by sending a GET request to localhost:9200