1、elasticsearch官网下载zip压缩包,链接为:https://www.elastic.co/downloads/elasticsearch。ElasticSearch版本和jdk版本见官网介绍。

 

2、解压到文件目录。

3、开启ElasticSearch服务。

    进入安装目录下的bin 目录,双击执行 elasticsearch.bat,该脚本文件执行 ElasticSearch 安装程序,稍等片刻,打开浏览器,输入 http://localhost:9200 ,显示以下画面,说明ES安装成功。

4、启动时异常解决:org.elasticsearch.ElasticsearchException: X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml。

在elasticsearch的核心配置文件elasticsearch.yml添加:xpack.ml.enabled: false即可正常启动。

posted on 2018-11-05 11:33  望海潮  阅读(200)  评论(0)    收藏  举报