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