下载 elasticsearch-head下载node
https://nodejs.org/en/download/
解压
tar -xvJf node-v16.13.1-linux-x64.tar.xz
配置
export NODE_HOME=/usr/local/node/node-v16.13.1-linux-x64
export PATH= P A T H : PATH: PATH:NODE_HOME/bin
node -v
git clone https://github.com/mobz/elasticsearch-head.git
安装命令
npm install
在安装之前可以修改npm源,默认是海外的速度慢,修改成淘宝的
npm config get registrynpm config set registry https://registry.npm.taobao.org
忽略phantomjs-prebuilt@2.1.16
npm install phantomjs-prebuilt@2.1.16 --ignore-scripts
启动es-head
npm run start
nohup npm run start(后台启动)
elasticsearch服务与elasticsearch-head之间可能存在跨越,修改elasticsearch.yzm配置添加内容
http.cors.enabled: true
http.cors.allow-origin: “*”
启动es
基本查询
增删改查



