Installation of Elasticsearch under Windows system

Elasticsearch is a search server based on Lucene. It provides a full-text search engine with distributed multi-user capabilities, based on a RESTful web interface. Elasticsearch is developed in the Java language and released as an open source under the terms of the Apache license. It is a popular enterprise search engine.

Before using Elasticsearch, we need to install Elasticsearch. The following describes how to install Elasticsearch under Windows system. Since Elasticsearch relies on the Java environment, you first need to install the Java environment.

1. Install the Java environment

First download and install the JDK (Java Development Kit). JDK is the core of the entire Java development, which includes the Java operating environment, Java tools and Java basic class libraries.

Installation steps: "Installation and Configuration of Java Development Environment"

 

2. Install Elasticsearch

In the Windows system, we can build the Elasticsearch service based on the zip installation package under Windows.

(1) Download the zip installation package of Elasticsearch

Download link: https://www.elastic.co/cn/downloads/elasticsearch

(2) Unzip the file after downloading the installation package

 (3) Start the Elasticsearch service

Enter the bin directory and double-click to execute the elasticsearch.bat file.

After executing the file, you can see the startup process of Elasticsearch in the window.

After Elasticsearch is started, you can type in the address bar of the browser: http://localhost:9200/

Verify the startup of Elasticsearch:

 

3. Installation of Windows service mode

Before installing the Windows service, you need to set environment variables and configure the Elasticsearch installation to the operating system environment. Open the system properties panel (right-click "My Computer" → "Properties" on the desktop), click Advanced System Settings → Environment Variables.

(1) New system variable

Variable name: Elasticsearch_Server

Variable value: D:\elasticsearch-7.11.1

(2) Modify the value of the Path variable

Add after the value of the Path variable: %Elasticsearch_Server%\bin

(3) Install Elasticsearch service

Install Elasticsearch service command:

elasticsearch-service.bat install

After the installation command is executed, you can see the installed Elasticsearch service in the service, as shown below:

Command to uninstall the service:

elasticsearch-service.bat remove

Other operation naming:

elasticsearch-service.bat install: Install the Elasticsearch service.

elasticsearch-service.bat remove: Delete the installed Elasticsearch service (stop the service if it is started).

elasticsearch-service.bat start: Start the Elasticsearch service (if installed).

elasticsearch-service.bat stop: Stop the service (if started).

elasticsearch-service.bat manager: Start the GUI to manage the installed services.

 

4. Install Elasticsearch visualization tool-Kibana

Kibana is an open source analysis and visualization platform designed for use with Elasticsearch. You can use Kibana to search and view the data stored in Elasticsearch. The interaction between Kibana and Elasticsearch is a variety of charts, tables, maps, etc., to display data intuitively, so as to achieve the purpose of advanced data analysis and visualization.

Kibana installation: "Kibana installation under Windows system"

 

Guess you like

Origin blog.csdn.net/pan_junbiao/article/details/114309373