zoukankan      html  css  js  c++  java
  • 在Windows下安装Elasticsearch5.0

    1.准备工作

    安装和配置Java环境

    2.下载

    地址:https://www.elastic.co/downloads/elasticsearch

    老版本:https://www.elastic.co/downloads/past-releases

    3.修改参数

    在config找到elasticsearch.yml文件夹

    需要接触注释并修改的参数为

    cluster.name:集群名称

    node.name:节点名称

    network.host:修改为0.0.0.0

    http.port:对外的端口,默认为9200

    如需跨域则添加以下配置:

    http.cors.enabled: true

    http.cors.allow-origin: "*"

    4.安装IK分词

    下载地址:https://github.com/medcl/elasticsearch-analysis-ik/releases

    下载的时候注意要下载跟自己使用的Elasticsearch版本对应的包

    将下载的包解压到Elasticsearch的plugins文件夹中,然后将文件夹改为ik,改后正确的目录结构为:

    plugins=>ik=>config=>custom

    5.启动Elasticsearch

    打开Windows命令窗口,cd到Elasticsearch文件夹的bin文件夹

    输入以下命令:

    elasticsearch-service.bat -install:安装

    elasticsearch-service.bat -remove:删除

    elasticsearch-service.bat -start:开启

    elasticsearch-service.bat -stop:停止

    elasticsearch-service.bat -manager:管理

  • 相关阅读:
    solution for "cannot find vcvarsall.bat" in Python
    fast debug a program with GDB
    pLSA 浅析
    argsort in Python
    how to create html from tex source file
    google云输入法以及在chrome中的插件
    贝叶斯估计浅析
    JavaScript学习篇(5)
    JavaScript学习篇(6)
    JavaScript学习篇(2)
  • 原文地址:https://www.cnblogs.com/h-change/p/7019318.html
Copyright © 2011-2022 走看看