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
Setting up ES cross-domain issues
Open the file config/elasticsearch.yml
and 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
Browser access: http://localhost:9100/
question
If npm install
there 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\phantomjs
under the file, and execute itnpm install
Reference: https://blog.csdn.net/xyy1028/article/details/126948634