elasticsearch-head 安装记录

官方 GitHub 地址为:https://github.com/mobz/elasticsearch-head

1、第一步在linux上安装git便于拉取代码,无需多言,直接yum安装就可以了

yum -y install git

2、拉取elasticsearch-head的代码从github上

git clone git://github.com/mobz/elasticsearch-head.git

3、进入 elasticsearch-head目录

cd elasticsearch-head

4、执行安装(需要先安装nodejs)

npm install
npm run start

5、elasticsearch-head端口号:9100  ,访问http://localhost:9100/ 

附:

nodejs的安装

1、直接从官网下载下来后,拖到合适的文件夹下

配置下环境变量就可以了

# vim /etc/profile,在文件末尾配置路径
export NODE_HOME=/app//app/node-v10.16.3
export PATH=$NODE_HOME/bin:$PATH
# 保存退出后使更改生效
source /etc/profile
# 验证 nodejs 全局配置生效
node -v
# 如果返回版本号证明安装成功

在执行npm install的过程中,可能会报错

npm WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated
……
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-09-02T13_59_51_703Z-debug.log

原因:phantomjs-prebuilt@2.1.16已被废弃

解决方案:忽略安装,执行以下命令

npm install phantomjs-prebuilt@2.1.16 --ignore-scripts

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值