安装
官网链接:https://www.elastic.co/cn/
本文使用 Windows系统的为例
下载完成后解压,目录如下:
找到bin
目录下的elasticsearch.bat
双击启动即可。
启动成功后会有两个端口 9300
和9200
| publish_address {127.0.0.1:9300} publish_address {127.0.0.1:9200}
|
9300
端口为Elasticsearch集群间组件的通信端口,9200
端口为浏览器访问的 http 协议 RESTful端口。
打开浏览器,输入地址:http://localhost:9200 ,测试结果
出现以下结果说明启动成功
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| { "name": "DESKTOP-70OJFI1", "cluster_name": "elasticsearch", "cluster_uuid": "hCc1HSSWRJCENJctqWh87w", "version": { "number": "7.15.2", "build_flavor": "default", "build_type": "zip", "build_hash": "93d5a7f6192e8a1a12e154a2b81bf6fa7309da0c", "build_date": "2021-11-04T14:04:42.515624022Z", "build_snapshot": false, "lucene_version": "8.9.0", "minimum_wire_compatibility_version": "6.8.0", "minimum_index_compatibility_version": "6.0.0-beta1" }, "tagline": "You Know, for Search" }
|
未完 ……