栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

Elasticsearch6.4.3——安装es浏览器可视化界面elasticsearch-head

Elasticsearch6.4.3——安装es浏览器可视化界面elasticsearch-head

本地安装git,使用git命令git clone git://github.com/mobz/elasticsearch-head.git
修改package.json的"Apache2.0",改为“Apache-2.0”

{
  "name": "elasticsearch-head",
  "version": "0.0.0",
  "description": "Front end for an elasticsearch cluster",
  "main": "_site/index.html",
  "directories": {
    "test": "test"
  },
  "scripts": {
    "start": "grunt server",
    "test": "grunt jasmine",
    "proxy": "node proxy/index.js"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/mobz/elasticsearch-head.git"
  },
  "author": "",
  "license": "Apache-2.0",
  "gitHead": "0c2ac0b5723b493e4454baa7398f386ecb829412",
  "readmeFilename": "README.textile",
  "devDependencies": {
    "grunt": "1.0.1",
    "grunt-contrib-concat": "1.0.1",
    "grunt-contrib-watch": "1.0.0",
    "grunt-contrib-connect": "1.0.2",
    "grunt-contrib-copy": "1.0.0",
    "grunt-contrib-clean": "1.0.0",
    "grunt-contrib-jasmine": "1.0.3",
    "karma": "1.3.0",
    "grunt-karma": "2.0.0",
    "http-proxy": "1.16.x"
  }
}

上传到服务器

安装nodejs

wget https://nodejs.org/dist/v14.16.1/node-v14.16.1-linux-x64.tar.xz

解压
tar -xvf node-v14.16.1-linux-x64.tar.xz
配置npm和node

ln -s /usr/local/nodejs/bin/npm /usr/local/bin/
ln -s /usr/local/nodejs/bin/node /usr/local/bin/

查看nodejs安装状态

node -v
npm -v

安装成功,进入到elasticsearch-head根目录

npm install

若安装出错则删除构建目录,重新安装

rm -rf node_modules
npm install --unsafe-perm


后台运行

nohup npm run start &

或者

grunt server &

然后再exit
默认9100端口,也可修改Gruntfile.js更改端口

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/721301.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号