elasticsearchHow do I install Elasticsearch?
-
Download and install the latest version of Java from the Oracle website.
-
Download and extract the Elasticsearch zip file from the Elastic website.
-
Open the
config/elasticsearch.yml
file and edit thecluster.name
andnode.name
settings. -
Run the following command to start Elasticsearch:
bin/elasticsearch
-
Check the output of the command to make sure Elasticsearch is running without any errors.
-
To test if Elasticsearch is running, open a web browser and go to
http://localhost:9200
. You should see a JSON response with the Elasticsearch version number. -
You can also use the
curl
command to test if Elasticsearch is running:
curl -X GET http://localhost:9200
Output example
{
"name" : "your_node_name",
"cluster_name" : "your_cluster_name",
"cluster_uuid" : "your_cluster_uuid",
"version" : {
"number" : "7.7.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "81a1e9eda8e6183f5237786246f6dced26a10eaf",
"build_date" : "2020-05-28T16:30:01.040088Z",
"build_snapshot" : false,
"lucene_version" : "8.5.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
More of Elasticsearch
- How can I use Elasticsearch with Zammad?
- How can I use Yandex Mirror to access Elasticsearch data?
- How do I configure elasticsearch to use an XMS memory allocator?
- How do I set up an Elasticsearch Yum repository?
- How can I use elasticsearch zone awareness to improve my software development?
- How can I use Elasticsearch and Zookeeper together to manage distributed applications?
- How can I check the status of a yellow index in Elasticsearch?
- How do I use Elasticsearch with ZGC?
- How do I use ElasticSearch to zip files?
- How can I use Elasticsearch and ZFS together?
See more codes...