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 do I use ElasticSearch to zip files?
- How can I use Elasticsearch and ZFS together?
- How do I set up an Elasticsearch Yum repository?
- How can I use an Elasticsearch template to index data?
- What hardware do I need to run Elasticsearch?
- How can I set the memory limit for Elasticsearch?
- How do I configure elasticsearch xpack.security.transport.ssl?
- How can I store and query zoned datetime values in Elasticsearch?
- How do I configure elasticsearch to use an XMS memory allocator?
See more codes...