Issues encountered with installing Elasticsearch 5.0.0 under Windows

Source: Internet
Author: User

First, in a relatively simple way
    1. Download the ZIP installation package First: Https://www.elastic.co/downloads/elasticsearch.
    2. Unzip to the installation directory;
    3. Enter the installation directory, enter the bin directory, start cmd;
    4. Run Elasticsearch.bat. Error unsupported Major.minor version 52.0.

The reason is that I installed both jdk1.7 and jdk1.8. But the environment variable in my java_home set is jdk1.7, Elasticsearch 5.0.0 only support jdk1.8, so start the service error. Set the environment variable java_home to jdk1.8, and then re-transport Elasticsearch.bat

5. Enter Http://localhost:9200/in the browser. The JSON format data shows that the installation is complete;

Above this starting mode must open a CMD window, after starting the service, close the cmd window to shut down the service. There is another way to start with a command 1. After installation, open cmd, go to the installation directory bin directory, run Elasticsearch-service.bat, will prompt this command to run parameters:

which

Install: Installation Services

Remove: Remove service

Start: Start the service

STOP: Stop service

Manager: Service Management

2. Run Elasticsearch-service.bat Install

Error at this time: thread stack size not set; Configure via D:\Program files\elasticsearch-5.0.0\config\jvm.options or es_java_opts

The reason is that the thread stack size is not configured, open the D:\Program files\elasticsearch-5.0.0\config\jvm.options file, add a-xss1m, as follows

Re-run:

3. Run Elasticsearch-service.bat Start again

4. Enter Http://localhost:9200/in the browser

Describes the installation and startup success.

5. Next try to install the Elasticsearch-head plug-in, tried many methods did not succeed, later in Elasticsearch-head's GitHub (https://github.com/mobz/elasticsearch-head) found

The reason is that the 5.x version does not support this plugin.

Issues encountered with installing Elasticsearch 5.0.0 under 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.