How to solve the problem that the node cannot log in to Elasticsearch?

How to solve the problem that the node cannot log in to Elasticsearch?


Situation description: The node cannot log in to Elasticsearch

Insert picture description here
Solution
Modify the following fields in the configuration file /etc/elasticsearrch.yml (insert at the end)

http.cors.enabled: true                  #开启跨域访问支持,默认为false
http.cors.allow-origin: "*"              #跨域访问允许的域名地址

Finally, restart the service.

Guess you like

Origin blog.csdn.net/weixin_51431591/article/details/114449632