如何下载
使用命令
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz
安装到本地
解压到指定目录
/Users/shifeifei/Software/elasticsearch-6.2.4
目录文件内容:
binconfigdataliblogsmodulesplugins
启动elasticsearch
sh bin/elasticsearch
查看启动日志
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"}
至此单实例安装完成。