Windows environment builds Elasticsearch 5.* and configures head

Source: Internet
Author: User
Tags install node

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

Related Article

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.