ubuntu安装Elasticsearch

https://www.myfreax.com/how-to-install-elasticsearch-on-ubuntu-18-04/

开放远程所需要的设置

vim etc/elasticsearch/elasticsearch.yml

network.host: 0.0.0.0
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
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: ["127.0.0.1"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["node-1"]

原文地址:https://www.cnblogs.com/xuyaoxiang1991/p/15624995.html