Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows environment builds ElasticSearch 5.* and configures head

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Setting up ElasticSearch in Windows environment 5.* requires JDK1.8

1. Download ElasticSearch

Https://www.elastic.co/cn/downloads/elasticsearch#ga-release

Since it is the windows version, you can download zip.

2. Decompress, my directory location: "E:\ es\ elasticsearch-5.4.1"

Double-click elasticsearch.bat under the bin directory of the folder to execute, and when you are finished, type 127.0.0.1 virtual 9200 in any browser

3. Install node

Installation of head above version 5 requires the installation of node and grunt (1.The plugin 2.* can be installed directly with the command)

Download address: https://nodejs.org/en/download/ according to their own system to download the corresponding msi, double-click to install.

When the installation is complete, enter the installation directory with cmd and execute node-v to check the version number.

Execute the npm install-g grunt-cli command in the same directory, and after installing grunt, a pile of yellow words appear to prove that the installation is successful.

4. Install head

Ctrl+c exits es

Modify the elasticsearch.yml file

Add at the end of the document

Http.cors.enabled: true

Http.cors.allow-origin: "*"

Node.master: true

Node.data: true

Release the comment of network.host: 192.168.0.1 and change it to network.host: 0.0.0.0

Let go of cluster.name;node.name;http.port 's comments

Double-click elasticsearch.bat to restart es

Https://github.com/mobz/elasticsearch-head downloads the zip file

Press it to the specified folder. My folder is E:\ es\ elasticsearch-5.4.1\ elasticsearch-head-master\

Enter the folder and modify E:\ es\ elasticsearch-5.4.1\ elasticsearch-head-master\ Gruntfile.js

Go to E:\ es\ elasticsearch-5.4.1\ elasticsearch-head-master\ _ site to modify the following content in app.js to the server address, or not if it is a native deployment.

Cmd goes to the E:\ es\ elasticsearch-5.4.1\ elasticsearch-head-master folder

Execute npm install

After the installation is completed, execute grunt server or npm run start (each time later). The following figure proves that the installation is successful. If it is not successful, exit es and execute npm install-g grunt-cli again.

6. After installation, check the result 127.0.0.1virtual 9100

Http://blog.csdn.net/u012270682/article/details/72934270

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report