Installation of win10 platform elasticsearch and elasticsearch-head, win10elasticsearch

Source: Internet
Author: User

Installation of win10 platform elasticsearch and elasticsearch-head, win10elasticsearch

Because elasticsearch is developed based on java

The first step is to install JDK.

JDK Installation Steps http://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html

Step 2: Download The ElasticSearch https://www.elastic.co/downloads/elasticsearch

Find the bin directory in the extracted directory, double-click elasticsearch. bat to start the elasticsearch service, and then enter http: // localhost: 9200/in the browser/

The following shows that elasticsearch has been started properly.

Step 3: Download elasticsearch-head, https://github.com/mobz/elasticsearch-head

Open the index.html page,

No data is found. F12 checks the console to find the cross-origin issue.

The solution is to configure elasticsearch to allow cross-origin access,

Do not enable these settings in the production environment; otherwise, security risks may exist,

Http. cors. enabled: true
Http. cors. allow-origin :/.*/
Http. cors. allow-credentials: true

After the configuration is complete, re-open the index.html page to view some information about your elasticsearch.

 

 

 

 

 

 

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.