2

如何下载

使用命令

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz

安装到本地

解压到指定目录

/Users/shifeifei/Software/elasticsearch-6.2.4

目录文件内容:

bin
config
data
lib
logs
modules
plugins

启动elasticsearch

sh bin/elasticsearch

查看启动日志

clipboard.png

127.0.0.1:9200表示本地服务已启动,浏览器入该地址就可访问到,访问结果如下:

{
  "name" : "SOlxDst",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "DNApu39ARduwS-QQ4lDDqQ",
  "version" : {
    "number" : "6.2.4",
    "build_hash" : "ccec39f",
    "build_date" : "2018-04-12T20:37:28.497551Z",
    "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"
}

至此单实例安装完成。


一只小小鸟
144 声望25 粉丝

如何做一个深层次的思考者,从简单开始、从记录开始。