How do I use Elasticsearch when it's installed on Windows?

Source: Internet
Author: User
Tags kibana

Install Elasticsearch process records on Windows 10

I. Installing and configuring the Java JDK
1, download: Http://download.oracle.com/otn ... 4.exe
2. Set Environment variables:
(1) Click the "New" button under "System Variables"
Variable name: java_home
Variable Value: C:\Program files\java\jdk1.8.0_92
(2) Create system variables in the same way classpath
Variable name: classpath
Variable value:.; %java_home%\lib;%java_home%\lib\tools.jar
(3) Add the following variable value at the end of the variable value of the existing system variable path
;%java_home%\bin;%java_home%\jre\bin
3. See if the installation is successful
Java-verison or Javac-version


Second, installation and configuration Elasticsearch
1. Download: Https://www.elastic.co/downloads/elasticsearch//I downloaded version 2.3.3
2. Extract to d:\elasticsearch-2.3.3 directory
3, Configuration Elasticsearch
(1) Configuring the Config\elasticsearch.yml file
Cluster.name:lgs-es
Node.name:node-1
(2) Configuring the Bin\elasticsearch.in.bat file
Set es_min_mem=4g
Set es_max_mem=4g
4. Operation Service
Double-click Bin\elasticsearch.bat Run


Third, install Elasticsearch plug-in
1. Install Head plugin (head is the Web console of ES. )
Bin/plugin.bat Install Mobz/elasticsearch-head
Run in Browser input http://localhost:9200/_plugin/head/after installation

2. Install Kibana plug-in
(1): Https://www.elastic.co/downloads/kibana
(2) Extract to D:\kibana-4.5.1-windows directory
(3) Configuring the Config\kibana.yml file
Elasticsearch.url: "http://localhost:9200"
(4) Bin\kibana.bat//Start Kibana
(5) Browser input http://localhost:5601

3, install sense plug-in (Sense is ES debugging tool, you can easily through the browser to the ES cluster to send various requests. )
Bin/kibana plugin--install Elastic/sense

4. Install Marvel Plug-in
(1) Install Marvel to Elasticsearch
Bin/plugin Install license//license plug-in first
Bin/plugin Install Marvel-agent

(2) Install Marvel to Kibana
Bin/kibana plugin--install elasticsearch/marvel/latest

(3) Start Elasticsearch and Kibana
Bin/elasticsearch
Bin/kibana

(4) Browser input:
Http://localhost:5601/app/marvel

5, install Elasticsearch-analysis-ik plug-in (IK is a Chinese word breaker plugin. )
A. Install maven before installing Elasticsearch-analysis-ik
(1) Download maven:https://maven.apache.org/download.cgi
(2) Extract to C:\Program Files (x86) \apache-maven-3.3.9
(3) Create a new environment variable:
Variable name: maven_home
Variable Value: C:\Program Files (x86) \apache-maven-3.3.9
(4) path to add Maven bin to Path
;%maven_home%\bin
(5) Enter mvn-v at the command prompt to display the relevant information successfully.

b, install the Elasticsearch-analysis-ik plug-in
(1) Download Compression pack Https://github.com/medcl/elasticsearch-analysis-ik
(2) Extract to D:\elasticsearch-analysis-ik-master
(3) CD D:\elasticsearch-analysis-ik-master
(4) MVN package//with Maven
(5) Create an IK folder in the Elasticsearch-2.3.3\config and Elasticsearch-2.3.3\plugins directories
(6) D:\elasticsearch-analysis-ik-master\target\releases\ the zip file generated by the package Elasticsearch-analysis-ik-1.9.3.zip Copy to Plugins/ik, and unzip.
(7) Word-breaker (contents in D:\elasticsearch-analysis-ik-master\config) in Config/ik directory
(8) Restart ES, test http://localhost:9200/_analyze?
analyzer=ik&pretty=true&text=java%e9%ab%98%e7%ba%a7%e5%b7%a5%e7%a8%8b%e5%b8%88

How do I use Elasticsearch when it's installed on Windows?

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.