ElasticSearch installation console

download unzip

Download the compressed package: https://codeload.github.com/mobz/elasticsearch-head/zip/refs/tags/v5.0.0

Extract it to the ES installation directory
insert image description here

Setting up ES cross-domain issues

Open the file config/elasticsearch.ymland write the following configuration.

http.cors.enabled: true 
http.cors.allow-origin: "*"
http.cors.allow-headers: "*"

Install

First install Node.js and set the Node.js Taobao mirror source:

npm config set registry https://registry.npm.taobao.org

Install the Grunt tool, otherwise the project will not start

npm install -g grunt-cli

Install vue and other related dependencies

npm install

Startup project

npm run start

start up

insert image description here

Browser access: http://localhost:9100/

insert image description here

question

If npm installthere is a problem (no screenshot, probably because there is a section in the middle that has been stuck for a long time, and at the end it says something about phantomjs-2.1.1-windows.zip).

Download the compressed package, address: https://wwts.lanzouf.com/iPjQd0vcebcb
,
put it C:\Users\zhang\AppData\Local\Temp\phantomjsunder the file, and execute itnpm install

Reference: https://blog.csdn.net/xyy1028/article/details/126948634

Guess you like

Origin blog.csdn.net/u014641168/article/details/130387781