P
P
Pavel Gogolinsky2020-05-04 14:25:31
Nginx
Pavel Gogolinsky, 2020-05-04 14:25:31

How to access elastic on IP:9200?

Elastic is installed on a VPS and http://localhost:9200responds correctly, but when accessing it via an external IP http://IP-ADDRESS:9200, the error "curl: (7) Failed to connect to ***.***.***.*** port 9200: Connection refused" is returned . How to solve the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene, 2020-05-04
@Nc_Soft

Either open the port to the outside, or proxy.

D
Drno, 2020-05-04
@Drno

Set connection permission to external ip
Open port in firewall

A
akelsey, 2020-05-04
@akelsey

in /etc/elasticsearch/elasticsearch.yml uncomment the network.host line and change it to "network.host: 0.0.0.0".
twist the elastic.
by itself, publish port 9200 on the router, but first enable xpack and set up authentication if you open port 9200 to everyone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question