Elasticsearch First article: Installing Elasticsearch under Windows

Source: Internet
Author: User
Tags elasticsearch tutorial

Https://www.elastic.co/downloads/past-releases/elasticsearch-2-4-4

This is the first article in the Elasticsearch 2.4 release series:

    • Elasticsearch First article: Installing Elasticsearch under Windows
    • Elasticsearch Introduction Second article: Cluster configuration
    • Elasticsearch Introduction Third: Index
    • Elasticsearch Getting started fourth: Adding and updating documents using C #
    • Elasticsearch Getting Started fifth: Querying documents using C #
    • Elasticsearch Getting Started sixth: Composite data types--arrays, objects, and nesting
    • Elasticsearch Introduction Seventh: Analyzers
    • Elasticsearch Getting started eighth: storage
    • Elasticsearch Introduction Nineth: The idea of implementing regular expression query

ES is a lucene-based distributed full-text Search server, and SQL Server full-text index (fulltext index) is a bit similar, are based on word segmentation and segmentation of the full-text search engine, with participle, synonym, stemming the function of the query, But ES is inherently distributed and real-time, and this essay demonstrates installing Elasticsearch in a Windows environment and the head plugin for managing Elasticsearch.

Elasticsearch Official website: http://www.elasticsearch.org

One, install the Java SE Environment

Before installing the Elasticsearch engine, you must install the required software environment for ES, install the Java JDK, and configure the Java_home environment variables:

1, download and install the Java SE sdk from Java se download ,

Elasticsearch is sensitive to the version of JRE, the wrong version will cause elasticsearch not to run, download the archived JRE, download the appropriate version from Java Archive.

2,java SE Development Package installation is complete, you need to create the JAVA_HOME environment variable on the server

Click the "This PC" property, advanced system settings (Setting), Environment variables (environment Variables), create a new user environment variable Java_home , the Set variable value is: C:\Program files\java\jdk1.8.0_121

Note: In Windows systems, the meaning of the "% environment variable name%" usage is to get the value of the specified environment variable and to create the java_home environment variable because the installation Elasticsearch needs to reference the JAVA SE development package.

3. Disable automatic updating of Java JDK

Automatic Updates to the JRE must be disabled because Elasticsearch receives the JRE version impact. 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

After installing the Java JDK, configuring the JAVA_HOME environment variable, you can install the Elasticsearch full-text search engine, first you need to download a specific version of ES installation files.

1, download Elasticsearch 2.4.4 version

From the official Download Center ElasticSearch Download Download ElasticSearch installation package, when the landlord, the latest version of ES is 5.1.2, this article uses the old version of 2.4.4, open past releases Select the past version of the installation, Download the zip file format. The landlord chose to install the 2.4.4 version because the 5.1.2 version does not support the head plugin.

2, open Elasticsearch Service

Unzip the zip file to the C drive, enter the C:\elasticsearch-2.4.4\bin directory, double-click Execute elasticsearch.bat, the script file executes the Elasticsearch installer, Wait a moment, open the browser, enter http://localhost:9200 , explicit the following screen, indicating the success of ES installation.

Third, install head plug-in

To facilitate the management of ES, this article uses head plug-in, this is the primary management tool, in the browser display ES cluster, index and other information, very useful.

1. Install the plugin on the command line

Press and hold Windows+r, enter cmd, open command line tool, go to Elasticsearch bin directory, install plugin using ES command

CD C:\elasticsearch-2.4.4\binplugin install Mobz/elasticsearch-head

2, through the Web management Elasticsearch

Enter http://localhost:9200/_plugin/head/in the local browser, if you see the following, the head plug-in installation is successful.

Four, install Elasticsearch into Windows Services (service)

1, open the DOS command line interface, switch to the bin directory of Elasticsearch, execute

Service.bat Install

2, start Elasticsearch service

Service.bat start

3, in the Run interface, enter services.msc, view Elasticsearch service

Five, recommended reading books

Recommended books: "Elasticsearch Server Development (2nd edition)", the book uses the Curl tool called ES API, in fact, using the head plug-in, in the Any Request tab, can easily construct the API to send requests to the ES server URL, To achieve the same functionality:

For example: Use the Curl tool to send commands to the ES server to get the health status of the cluster:

Curl-xget Http://127.0.0.1:9200/_cluster/health?pretty

Using the head plugin, send a request to the ES server to get the health status of the cluster:

Reference Documentation:

Elasticsearch Cluster management tools head Plugin

ElasticSearch Simple Introduction

Elasticsearch Tutorial (i), full stream (small white level)

Elasticsearch Tutorial (i)--Introduction and installation

Distributed Search Elasticsearch Cluster management tool head

Elasticsearch First article: Installing Elasticsearch under Windows

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.