ES (Elasticsearch) access: cluster health value: not connected

ES (Elasticsearch) access:

http://localhost:9100/
keeps prompting: cluster health value: not connected
Insert picture description here

The reason is: because the ES is configured with encryption, it cannot be accessed with the previous access link, and user authentication is required when accessing.

Solution:
1.
Find the ES configuration file elasticsearch.yml to add

http.cors.allow-headers: Authorization,Content-Type

Insert picture description here

Can be added
Insert picture description here

The access link cannot be the previous

http://localhost:9100

Should be changed to:

http://localhost:9100/?auth_user=elastic&auth_password=123456

Seeing this should all understand.

Insert picture description here

Perfect solution!

Welcome to the guidance of the great god, you can leave a message to communicate!

======================
My original article, reprinted to indicate the discrepancy!

=================

Guess you like

Origin blog.csdn.net/dayonglove2018/article/details/108582314