zoukankan      html  css  js  c++  java
  • windows下安装elasticsearch和elasticsearch-head

    1. 首先下载elasticsearch和elasticsearch-head

    https://www.elastic.co/cn/downloads/past-releases
    https://github.com/mobz/elasticsearch-head
    

    2. 安装nodejs

    http://nodejs.cn/download/

    由于elasticsearch-head是用js编写的,需要下载和安装nodejs,一直下一步

    cmd命令行中敲入node -v有版本返回安装成功

    4.在elastic-head的目录文件下cmd执行 npm install安装需要的node_modules(需要联网

    5. 解压elasticsearch包, 修改elasticsearch中的配置文件 config/elasticsearch.yml允许跨域访问, bin中启动elasticsearch

    http.cors.enabled: true
    http.cors.allow-origin: "*"

    6.在elastic-head的目录文件下cmd执行npm run start启动elasticsearch-head 

  • 相关阅读:
    Ugly Numbers
    Present
    Out of Hay
    Stars(树状数组或线段树)
    Humble Numbers
    Wireless Network
    Rank List
    Argus
    食物链
    Antenna Placement
  • 原文地址:https://www.cnblogs.com/chenxi-mxj/p/12149206.html
Copyright © 2011-2022 走看看