Build "ElasticSearch" in Windows environment

Source: Internet
Author: User
Tags java se

ElasticSearch, referred to as ES, is a lucene-based distributed full-text Search server, and SQL Server full-text index (fulltext index) a bit similar, are based on word segmentation and segmentation of the full-text search engine, with participle, synonym, stem query function , but ES inherently has distributed and real-time properties.

One, install the Java SE Environment

Install the Java JDK and configure the Java_home environment variables:

1, download and install the Java SE Development package from Java SE Download, the latest version is the Java SE 10.0.2

2, after the installation is complete, you need to create the java_home environment variable on the server, set the variable value is: D:\Program files\java\jdk-10.0.2

3, disable automatic update of Java JDK, avoid elasticsearch receive JRE version effect.

On the Control Panel, click the Java icon, Open the Java Control Panel, switch to the Update tab (tab), deselect "Check for Updates automatically", and prevent the system from automatically updating JDR automatically.

Switch to the Advanced tab and set application installation to never install.

Second, install Elasticsearch

1 from official Download Center   ElasticSearch download< Span style= "FONT-SIZE:13.3333PX; font-weight:400 ">  Download Elasticsearch installation package, current latest version is 6.3.1

2, Unzip the zip file to the D drive, enter   d:\elasticsearch-6.3.1\bin   directory, double-click Execute   elasticsearch.bat, the script file Execution ElasticSearch launcher

3, Open Browser, enter http://localhost:9200 , the explicit following screen illustrates the success of ES installation.

Third, install head plug-in

to facilitate the management of ES, you can use the head plug-in, which is the primary management tool, in the browser display ES cluster, index and other information, very simple and useful.  

1, first to install the Nodejs,: https://nodejs.org/en/

2,&NBSP; decompression   elasticsearch-head-master  to " Span style= "color: #333333; Font-family:verdana, Arial, Helvetica, Sans-serif; Font-size:13.3333px ">&NBSP; d:\elasticsearch-6.3.1 \elasticsearch-head-master

3,  config  elasticsearch-6.3.1\config\ elasticsearch.yml

# set it to 0.0.0.0 so anyone can access it, don't set it on the online service. #0.0. 0.0  9200# Resolve elasticsearch-head Cluster Health value: No connectivity issue trueHttp.cors.allow "*"

4, perform npm install-g grunt-cli in the Elasticsearch-head-master directory

Grunt is a project building tool based on node. js that allows for packaging compression, testing, execution, and so on, and the head plugin is launched through grunt.

5, perform npm install dependency in Elasticsearch-head-master directory

6. Modify the elasticsearch-head-master configuration.

Modify Server Listener Address:gruntfile.js

        Connect: {            server: {                options: {                    9100,                    '. ' ,                     true ,                      ' * '         }}

7 . Start the run Head service and execute the Grunt Server command.

8, Visit Head Management page, address: http://localhost:9100/

Four, configure Ealsticsearch for Windows services

Switch to the bin directory of Elasticsearch to execute the appropriate command:

Installing service.bat Install

Start service.bat start

Keep Learning and growing. *** *****************************

——

Build "ElasticSearch" in Windows environment

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.