head插件安装-elasticsearch
p.p2 { margin: 0 0 3.4px; font: 14px “PingFang TC”; color: rgba(255, 255, 255, 1); -webkit-text-stroke: #000000 }
p.p3 { margin: 0 0 7.7px; font: 14px Arial; color: rgba(255, 255, 255, 1); -webkit-text-stroke: #000000 }
p.p4 { margin: 0; font: 14px Arial; color: rgba(255, 255, 255, 1); -webkit-text-stroke: #000000 }
span.s1 { font-kerning: none; font-variant-ligatures: no-common-ligatures }
span.s2 { font: 14px “PingFang TC”; font-kerning: none; font-variant-ligatures: no-common-ligatures }
span.s3 { font: 14px Arial; font-kerning: none; font-variant-ligatures: no-common-ligatures }
span.s4 { font: 14px Helvetica; font-kerning: none; font-variant-ligatures: no-common-ligatures }
span.s5 { font: 14px “PingFang SC”; font-kerning: none; font-variant-ligatures: no-common-ligatures }
span.s6 { font: 32px Carlito; font-kerning: none; font-variant-ligatures: no-common-ligatures; color: rgba(0, 0, 0, 1) }
span.s7 { text-decoration: underline; font-kerning: none; font-variant-ligatures: no-common-ligatures; color: rgba(0, 0, 255, 1) }
span.Apple-tab-span { white-space: pre }
1.安装node环境:
下载地址:https://nodejs.org/download/release/v8.13.0/node-v8.13.0-linux-x64.tar.gz
gunzip node-v8.13.0-linux-x64.tar.xz
tar -xf node-v8.13.0-linux-x64.tar
解压后的路径:/apps/svr/node-v8.13.0
建立软连接
ln -s /apps/svr/node-v8.13.0/bin/node /usr/bin/node
ln -s /apps/svr/node-v8.13.0/bin/npm /usr/bin/npm
执行完后 运行 node -v 和 npm -v 分别就可以看到node 的版本为8.13.0 npm为6.4.1
2.安装head插件
下载地址:https://github.com/mobz/elasticsearch-head/
(1) git clone git://github.com/mobz/elasticsearch-head.git
如果提示git找不到 则先安装git:yum install -y git
(2)cd elasticsearch-head
(3) npm install(修改下npm源: npm config set registry https://registry.npm.taobao.org ) 或者使用: npm install cnpm -g —registry=https://registry.npm.taobao.org
注意://如果使用了 cnpm 那么就要 用 cnpm install(如果没有建立软连接还需要指定cnpm所在的位置: ../node-v8.13.0/bin/cnpm install )
(4) npm run start
(5)访问:http://你的ip:9100/