curl: (7) Failed connect to localhost:9200; Connection refused

problem: no authorization
curl: (7) Failed connect to localhost:9200; Connection refused

solution: modify the elasticsearch.yml net.host value 0.0.0.0
represents all IP authorization

edit configuration files
vi/usr/local/elasticsearch – 6.2.3/config/elasticsearch. Yml

problem resolved:
test whether the

can be accessed normally

Read More: