elasticsearchHow do I install Elasticsearch on Ubuntu?
- Download the latest version of the Elasticsearch .deb package from the Elasticsearch website.
- Install the package with the following command:
sudo dpkg -i elasticsearch-<version>.deb
- Start Elasticsearch with the following command:
sudo systemctl start elasticsearch.service
- Verify that Elasticsearch is running by sending an HTTP request to port 9200 on localhost:
curl -X GET "localhost:9200"
Output example
{
"name" : "Q2_Ew",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "z_iQ_BVQT6GQPq_jJ-y2g",
"version" : {
"number" : "7.6.2",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
"build_date" : "2020-03-26T06:34:37.794943Z",
"build_snapshot" : false,
"lucene_version" : "8.4.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
- To make sure Elasticsearch starts at boot time, run the following command:
sudo systemctl enable elasticsearch.service
- To test the installation, run the following command:
curl -X GET "localhost:9200/_cat/health?v&pretty"
Output example
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1585400389 15:03:09 elasticsearch green 1 1 0 0 0 0 0 0 - 100.0%
- You can find further instructions on how to configure and use Elasticsearch in the official documentation.
More of Elasticsearch
- How can I use Elasticsearch and ZFS together?
- How can I use Elasticsearch and Zabbix together for software development?
- How can I use Elasticsearch to diagnose "yellow" issues?
- How do I set up an Elasticsearch Yum repository?
- How can I store and query zoned datetime values in Elasticsearch?
- How can I check the status of a yellow index in Elasticsearch?
- How can I set up and use Elasticsearch on the Yandex Cloud platform?
- How can I use Elasticsearch with Zammad?
- How can I use Elasticsearch and Zookeeper together to manage distributed applications?
- How can I use YouTube to learn about Elasticsearch?
See more codes...