mac安装ElasticSearch
Posted nicknailo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac安装ElasticSearch相关的知识,希望对你有一定的参考价值。
1、brew update
brew install elasticsearch
2、brew install elasticsearch-header
3、在命令中输入 elasticsearch
4、浏览器输入
127.0.0.1:9200
![](https://image.cha138.com/20210605/51755362bbc5467389096436b71d9c45.jpg)
5、put内容
内容如下
{
"title": \'Tony Stark\',
"content": \'Tony Stark is Ironman Hero. He is handsome and stronger!\'
"tag":["hero","marvrl"]
}
6、查询内容
![](https://image.cha138.com/20210605/95a5583b3b44429db7d544d075570089.jpg)
![](https://image.cha138.com/20210605/a539af4711a64b82be7e6d44f1bc9213.jpg)
以上是关于mac安装ElasticSearch的主要内容,如果未能解决你的问题,请参考以下文章
elasticsearch代码片段,及工具类SearchEsUtil.java
MAC 安装 ElasticSearch7.1.1及head插件