直接使用brew install命令来快速安装Elasticsearch,命令如下:
brew install elasticsearch
安装完成后可使用elasticsearch --version命令来查看ES版本信息,如果显示ES版本信息,那就说明安装成功,如下图所示:
![b99c8c78e9f88c9eb3d64fedf9842554.png](https://img-blog.csdnimg.cn/img_convert/b99c8c78e9f88c9eb3d64fedf9842554.png)
执行启动Elasticsearch的命令,如下:
elasticsearch
访问Elasticsearch网址
方法1:启动Elasticsearch后,在浏览器的地址栏中输入“http://127.0.0.1:15672”,并按下回车键,访问Elasticsearch网址。
方法2:新建一个新的终端,使用curl命令访问Elasticsearch网址,如下:
curl 127.0.0.1:9200
json数据如下:
{ "name": "node-1", "cluster_name": "elasticsearch", "cluster_uuid": "JA5U86VwToiwx7ggaOfm9w", "version": { "number": "7.9.3", "build_flavor": "default", "build_type": "tar", "build_hash": "c4138e51121ef06a6404866cddc601906fe5c868", "build_date": "2020-10-16T10:36:16.141335Z", "build_snapshot": false, "lucene_version": "8.6.2", "minimum_wire_compatibility_version": "6.8.0", "minimum_index_compatibility_version": "6.0.0-beta1" }, "tagline": "You Know, for Search"}
[碰拳] 作者声明[碰拳]
本篇经验系本人依照真实经历原创,需要转载到博客、自媒体平台、技术网站等,未经许可,严格遵守本人的知识版权,谢绝转载。如想转载,请联系本人授权。
联系邮箱:3403978592@qq.com
[碰拳]关注公众号[碰拳]
在微信搜索框里输入"未来众创聚集地",并点击【搜索】按钮,接下来选中名为"未来众创聚集地"的公众号列表后,直接关注本人的公众号即可。