Elasticsearch Introduction (Basic building)

Source: Internet
Author: User

Download Unzip elasticsearch-2.x.tar.gz

1. Installation Start-up

Installing the Monitoring plugin

./plugin Install Mobz/elasticsearch-head

Modify ES Configuration

elasticsearch2.0.0 version needs to be modified before booting

Configuration in config Elasticsearch.yml file

Network.host 172.24.3.95

This will ensure that the external network can also access the cluster health, or only through localhost access

Another argument is that using 0.0.0.0 has not been validated

Modify the following configuration

discovery.zen.ping.unicast.hosts [Xxx,xxx]

can be cluster-aware, ES document said will automatically sense the cluster, perhaps my configuration reasons, can only manually modify the configuration file for the perception

Start ES

./elasticsearch-d--cluster.name Jiangnan_cluster--node.name jiangnan_node_1

Start-D to run execution for daemon can specify a specific cluster\note name

The same IP segment will perceive the cluster, and can be added according to the cluster name

After cluster boot, the monitoring address is

http://172.24.3.95:9200/_plugin/head/

Verify that the ES cluster boot command is as follows

Curl ' Http://localhost:9200/?pretty '

The basic construction is completed

Related meanings

Elasticsearch is equivalent to a MySQL

Index is equivalent to each database

Type is equivalent to each table

Schema equivalent to Mapping

Document is equivalent to row

field is equivalent to field

Elasticsearch Introduction (Basic building)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.