Ubuntu16.04.3安装Elasticsearch-head

   在学习Elasticsearch的过程中,必不可少需要通过一些工具查看es的运行状态以及数据。如果都是通过rest请求,未免太过麻烦,而且也不够人性化。此时,head可以完美的帮助你快速学习和使用Elasticsearch。

1.下载Elasticsearch-head

  • 1.可以直接在GitHub里面查找并下载到本地,然后上传到服务器>>>直达链接
  • 2.直接在Ubuntu中使用git工具下载

    git clone git://github.com/mobz/elasticsearch-head.git
    
  • 3.elasticreash-head基于node.js,所以要下载node.js

    wget https://npm.taobao.org/mirrors/node/v8.9.3/node-v8.9.3-linux-x64.tar.xz
    xz -d node-v8.9.3-linux-x64.tar.xz
    tar -xvf node-v8.9.3-linux-x64.tar
    名字太长了重命名
    mv node-v8.9.3-linux-x64 node
    配置环境变量
    vim /etc/profile
    export NODE_HOME=/home/soft/node  
    export PATH=$NODE_HOME/bin:$PATH  
    保存退出,执行生效
    source /etc/profile
    
  • 4.(可选)由于npm下载都是从外国服务器下载,速度比较慢,所以我们选择使用淘宝的cnpm

    npm install -g cnpm --registry=https://registry.npm.taobao.org
    安装后我们再使用npm的时候就要输入cnpm来使用了
    
  • 5.下载后进入elasticsearch-head,安装依赖包

    npm install
    
  • 6.运行elasticsearch-head服务

    npm run start
    

猜你喜欢

转载自blog.csdn.net/baoshuowl/article/details/80530208