elasticsearch入门笔记

Posted 懒企鹅

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elasticsearch入门笔记相关的知识,希望对你有一定的参考价值。

安装

注意:elasticsearch需要非ROOT用户启动
https://es.xiaoleilu.com/010_Intro/10_Installing_ES.html

下载elasticsearch

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

下载kibana

https://www.elastic.co/downloads/kibana

安装X-Pack

https://www.elastic.co/downloads/x-pack
执行

bin/x-pack/setup-passwords auto

记录生成的密码:

Changed password for user kibana
PASSWORD kibana = inc32lf2XYcHGNB4cBwe

Changed password for user logstash_system
PASSWORD logstash_system = qhC4gHM19yCZxRxV4hZB

Changed password for user elastic
PASSWORD elastic = V33XO5O6KtodeYZqGUN5

访问:
http://localhost:5601/

测试

访问:http://localhost:9200/?pretty,需要填上面的用户名/密码
返回:

{
  "name" : "csYi3Om",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "Ryy0C4leSremYwSVtj1BAQ",
  "version" : {
    "number" : "6.2.3",
    "build_hash" : "c59ff00",
    "build_date" : "2018-03-13T10:06:29.741383Z",
    "build_snapshot" : false,
    "lucene_version" : "7.2.1",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

以上是关于elasticsearch入门笔记的主要内容,如果未能解决你的问题,请参考以下文章

笔记ElasticSearch入门

笔记ElasticSearch入门

ElasticSearch入门学习笔记

elasticsearch入门笔记

ElasticSearch 入门笔记1

Elasticsearch入门笔记