elasticsearch5.5-head

  1. 修改 elasticsearch/config/elasticsearch.ymlnode

  2. 添加git

    http.cors.enabled: true http.cors.allow-origin: "*"
  3. 下载 elasticsearch-head 或者 git clone 到随便一个文件夹github

  4. 安装nodejs, 安装9.0.0以上版本  node -v  npm默认安装 npm -vweb

  5. cd /path/to/elasticsearch-headexpress

  6. npm install -g grunt-clinpm

  7. npm install json

  8. g) 编辑Gruntfile.jscors

    文件93行添加hostname:’0.0.0.0’elasticsearch

    h) 检查head根目录下是否存在base文件夹grunt

    没有:将 _site下的base文件夹及其内容复制到head根目录下

    i) 启动grunt server:

    在head下运行grunt server -d启动head插件

    j) 访问head插件:

    http://localhost:9100(启动后会有提示:Started connect web server on http://localhost:9100)

    

注意:

第7条注意点:

1.phantomjs.tar.bz2解压:须要安装bzip2

yum install bzip2

2.

npm WARN elasticsearch-head@0.0.0 license should be a valid SPDX license expression

解决方式:

打开elasticsearch-head目录下的package.json文件,找到license位置

 

3.phantomjs-prebuilt@2.1.14 install: `node install.js`
Exit status 1

解决方式:

输入dos命令:npm install phantomjs-prebuilt@2.1.14 --ignore-scripts

相关文章
相关标签/搜索
本站公众号
   欢迎关注本站公众号,获取更多信息