首页 > 代码库 > elasticsearch 学习笔记

elasticsearch 学习笔记

1.安装

https://www.elastic.co/cn/ 官方下载

2.启动  

<style>p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #000000; background-color: #ffffff } span.s1 { }</style>

bin/elasticsearch

<style>p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #000000; background-color: #ffffff } span.s1 { }</style>

成功示例:

Macbook:~ shibazizhan$ curl ‘http://localhost:9200/?pretty‘

{

  "name" : "LduvONg",

  "cluster_name" : "elasticsearch",

  "cluster_uuid" : "VilNCv_FRiK2m196Vbi9Ig",

  "version" : {

    "number" : "5.4.0",

    "build_hash" : "780f8c4",

    "build_date" : "2017-04-28T17:43:27.229Z",

    "build_snapshot" : false,

    "lucene_version" : "6.5.0"

  },

  "tagline" : "You Know, for Search"

}

elasticsearch 学习笔记