1. Download Elasticsearch
From Elasticsearch official website https://www.elastic.co/downloads/elasticsearch
Download the latest version of Elasticsearch. Choose the version that is compatible with your Linux operating system.
2. Unzip Elasticsearch
Extract the downloaded Elasticsearch file to a directory of your choice. Unzip Elasticsearch using the following command on the command line
Where <version> is the version number of Elasticsearch you downloaded
tar -xvf elasticsearch-<version>-linux-x86_64.tar.gz
3. Configure Elasticsearch
Enter the Elasticsearch directory and edit the config/elasticsearch.yml file to set the following parameters
cluster.name: <your-cluster-name>
node.name: <your-node-name>
network.host: 0.0.0.0
http.port: 9200
4. Start Elasticsearch
At the command line, go to the Elasticsearch directory and run the following command to start Elasticsearch
./bin/elasticsearch
5. Verify Elasticsearch
Open your browser and visit http://localhost:9200/
You will see the version information of Elasticsearch and other information