Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Windows environment builds ElasticSearch 5.* and configures head

Shulou Source: shulou.com Published: 2022-06-03 05:14:25 11月14日 Update

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

Tags: File folder directory success version command address comment environment following figure following location content server browser system result native yellow service Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Docker Huawei MySQL Microsoft