Elasticsearch安装
下载windows 7.17.5版本安装包,安装包是一个zip,和tomcat一样解压即可用,elasticsearch依赖JDK环境,至少需要JDK 1.8版本。
运行
# 进入bin目录
.\elasticsearch.bat
启动完毕后,浏览器输入http://localhost:9200/
将会得到以下结果
{
"name": "DESKTOP-EA3D6O1",
"cluster_name": "elasticsearch",
"cluster_uuid": "mgtShLI9R2-g57-_3ARkfQ",
"version": {
"number": "7.17.5",
"build_flavor": "default",
"build_type": "zip",
"build_hash": "8d61b4f7ddf931f219e3745f295ed2bbc50c8e84",
"build_date": "2022-06-23T21:57:28.736740635Z",
"build_snapshot": false,
"lucene_version": "8.11.1",
"minimum_wire_compatibility_version": "6.8.0",
"minimum_index_compatibility_version": "6.0.0-beta1"
},
"tagline": "You Know, for Search"
}
可视化界面安装(elasticsearch-head)
git clone [email protected]:mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
npm run start
访问http://localhost:9100/
连接elasticsearch
在elasticsearch服务端中配置跨域,在安装目录/config/elasticsearch.yml中加入以下配置
http:
cors:
enabled: true
allow-origin: "*"
此外,elasticsearch-head
还有一个chrome plugin,使用它可以不用配置跨域。
安装Kibana
为了不必要的麻烦,下载与elasticsearch
同样的版本7.17.5
运行
# 进入bin目录
.\kibana.bat
访问http://localhost:5601
配置中文界面,在安装目录/config/kibana.yml中加入以下配置
i18n.locale: "zh-CN"
标签:head,7.17,http,学习,version,elasticsearch,build,Elasticsearch,搭建
From: https://www.cnblogs.com/wt20/p/16610968.html