Windows environment to build Elasticsearch 5.* need JDK1.8;
1. Download Elasticsearch
Https://www.elastic.co/cn/downloads/elasticsearch#ga-release
Because it's a Windows version, you can download the zip
2, unzip, my directory location: "E:\es\elasticsearch-5.4.1"
In the folder's Bin directory, double-click Elasticsearch.bat to execute, after completing any browser type 127.0.0.1:9200,
3. Install node
5 or more installs the head requires node and grunt (1.*,2.* is installed directly with the plugin command)
: https://nodejs.org/en/download/Download the appropriate MSI according to your system and double-click Install.
Installation complete with CMD Enter the installation directory execution node-v can view the version number
Execute npm install-g grunt-cli command in the same directory, install grunt end up with a bunch of yellow letters to prove the installation was successful
4. Install Head
CTRL + C Exit ES
Modify the Elasticsearch.yml file
Add at the end of the document
Http.cors.enabled:true
Http.cors.allow-origin: "*"
Node.master:true
Node.data:true
Release network.host:192.168.0.1 's comment and change to network.host:0.0.0.0
Let go of Cluster.name;node.name;http.port's notes.
Double-click Elasticsearch.bat to restart ES
Https://github.com/mobz/elasticsearch-head Download zip file
Press to the specified folder, my folder is E:\es\elasticsearch-5.4.1\elasticsearch-head-master\
Go to the folder and modify E:\es\elasticsearch-5.4.1\elasticsearch-head-master\gruntfile.js
Enter E:\es\elasticsearch-5.4.1\elasticsearch-head-master\_site Modify app.js in the context of the server address, if the native deployment is not modified also can.
CMD into e:\es\elasticsearch-5.4.1\elasticsearch-head-master folder
Perform NPM Install
The installation finishes executing grunt server or NPM run start (each time later), appears to prove that the installation was successful, and if unsuccessful, exit ES and then perform NPM install-g grunt-cli
6. Installation Complete View results 127.0.0.1:9100
http://blog.csdn.net/u012270682/article/details/72934270
Windows environment builds Elasticsearch 5.* and configures head