J'ai mon ES 2.2 installé sur mon océan numérique droplet.My fichier de configuration ES ressemble ci-dessousConnection Refused ElasticSearch 2.2
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: "My Droplet Ip address"
network.bind_host: 127.0.0.1
http.publish_port: 9200
http.port: 9200
#
# Set a custom port for HTTP:
#
# http.port: 9200
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
#
# http.cors.enabled: true
#http.cors.allow-origin: "*"
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
# discovery.zen.ping.unicast.hosts: ["host1", "host2"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of nodes/2 + 1):
#
# discovery.zen.minimum_master_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
# gateway.recover_after_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
Maintenant, lorsque je tente de se courber -XGET localhost: 9200 fonctionne correctement mais quand je essayez d'accéder à mes ES de distance "est http://IpAddress:9200 me donne Connection refused aussi pelotonner -XGET IPAddress: 9200 me donne Connection refused
Ce fonctionnait très bien avec 1,4 ES mais avec 2.X il a commencé à me donner des problèmes de connexion
Essayez de supprimer 'network.bind_host' et ne gardez que' network.host' avec votre adresse IP publique. – Val
Cela a fonctionné. Précédemment j'ai fait la même chose mais n'ai pas édité mon port –