Win7 Installing the Elasticsearch cluster

Source: Internet
Author: User

1, single-node installation please refer to the previous blog

Http://www.cnblogs.com/lianliang/p/7953754.html

2, cluster installation (simulation of two nodes here)

1) Installation of the cluster, based on the previous single node installation

First unzip a ZIP package, directory structure similar, (master directory for the previous single node installation directory)

3, the configuration of the cluster

1) Modify the master configuration file: Elasticsearch-5.6.4-master\config\elasticsearch.yml, add the following configuration items

Cluster.name:lee

Node.name:master node.master:true network.host:127.0.0.1

2) Modify the slave1 configuration file: Elasticsearch-5.6.4-slave1\config\elasticsearch.yml, add the following configuration items

Cluster.name:lee (consistent with the primary node cluster name) node.name:slave1 network.host:127.0.0.1 http.port:9201 discovery.zen.ping.unicast.h OSTs: ["127.0.0.1"] (Discover Master)

3) JVM Configuration modification (optional)

Modify the master and slave1 configuration files: \config\jvm.options, resize the heap memory to 1g

4. Cluster startup

1) Start Master

CMD enters Elasticsearch-5.6.4-master\bin, executes Elasticsearch.bat

2) Start slave1

CMD enters Elasticsearch-5.6.4-slave1\bin, executes Elasticsearch.bat

3) Start Head plugin

CMD enters Elasticsearch-head-master, executes grunt server

5. Visit

Browser Open: Http://localhost:9100/

Win7 Installing the Elasticsearch cluster

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.