Windows environment builds Elasticsearch 5.* and configures head

Source: Internet
Author: User
Tags install node

Objective:

es5* above requires jdk1.8,jdk1.8,jdk1.8. Important thing to say three times

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:\elasticsearch-5.4.1\"

In the folder's Bin directory double-click Elasticsearch.bat execution, after the completion of any browser type 127.0.0.1:9200, appears below the interface, proves successful

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 that the installation was successful (I forgot it after installation)

View version number with Grunt-version

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

Unzip to the specified folder, my folder is E:\elasticsearch-5.4.1\elasticsearch-head-master\

Go to the folder and modify the E:\elasticsearch-5.4.1\elasticsearch-head-master\Gruntfile.js

Enter E:\elasticsearch-5.4.1\elasticsearch-head-master\_site Modify App.js The following content for the server address, if the native deployment is not modified can also.

CMD into the E:\elasticsearch-5.4.1\elasticsearch-head-master folder

Perform NPM Install

Then in the head source directory, execute the NPM install download package:

NPM Install

Effect

A warning or error may be reported for the initial run of the installation. You can rerun the NPM install once.

Finally, start Nodejs under the head source code directory:

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

Add some attention to the installation process:
When installing NPM dependencies,
To the Elasticsearch-head-master directory, run the command:
NPM Install
If the speed is slow or the installation fails, you can use a domestic mirror:
NPM install-g cnpm--registry=https://registry.npm.taobao.org
(The above content from: http://blog.csdn.net/napoay/article/details/53896348)

Then you can try to try the Grunt Server command, also in the above mentioned in the master directory, if it appears
Fate Error,can not find local grunt
Error, you need to use the
NPM Install Grunt
command to install the grunt. Here, if the process is not wrong, it is best to use a separate grunt command to see if there is something missing, if there is missing, use
NPM Install Contrip-grunt-xxx (which is the thing that prompts you), command installation things
You can look here.
http://blog.csdn.net/u010504064/article/details/70231685
You may encounter a jasmine when installing (meaning Molly?). No warning can be found, regardless.
Finally, with the Grunt Server command, you will see a successful connection in the console.

6, Installation Complete view results 127.0.0.1:9100, I built the index, did not build the index when no node (see the Last picture)

The last diagram, the node is not built

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.