Elasticsearch是一款开源、分布式并提供RESTful风格api的搜索引擎
1、下载最新版本的elasticsearch,当前版本7.6.1
官网下载地址:https://www.elastic.co/cn/downloads/elasticsearch
Mac版本网盘地址:https://pan.baidu.com/s/10MywNUZxAajDToVKSdVcTA 密码:qop9
2、解压安装包:
$ tar -xzvf elasticsearch-7.6.1-xxxx.tar.gz
定位到解压目录elasticsearch-7.6.1
进入config目录修改elasticsearch.yml文件
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["192.168.1.3", "[::1]"]
#
# Bootstrap the cluster us