一、安装 JAVA8 JDK
二、下载 Elasticsearch
三、解压 Elasticsearch
这里以本机 version 7.13.2 为例
¢ cd ~/Downloads/elasticsearch-7.13.2
# haolin : ~/Downloads/elasticsearch-7.13.2
¢ ls
LICENSE.txt NOTICE.txt README.asciidoc bin config jdk.app lib logs modules plugins
# haolin : ~/Downloads/elasticsearch-7.13.2
四、配置elasticsearch.yml,并创建对应的data和logs文件夹
五. 启动
cd elasticsearch-7.13.2/bin
./elasticsearch &
六. 访问 http://127.0.0.1:9200/
{
“name” : “haolindeMacBook-Pro.local”,
“cluster_name” : “elasticsearch”,
“cluster_uuid” : “1BpII0G4RYqAEU3WlYcj0g”,
“version” : {
“number” : “7.13.2”,
“build_flavor” : “default”,
“build_type” : “tar”,
“build_hash” : “4d960a0733be83dd2543ca018aa4ddc42e956800”,
“build_date” : “2021-06-10T21:01:55.251515791Z”,
“build_snapshot” : false,
“lucene_version” : “8.8.2”,
“minimum_wire_compatibility_version” : “6.8.0”,
“minimum_index_compatibility_version” : “6.0.0-beta1”
},
“tagline” : “You Know, for Search”
}