zoukankan      html  css  js  c++  java
  • Elasticsearch Head 集群健康值:未连接

    安装elasticsearch 6.0  x-pack后,登录9200端口需要用户和密码,

    这样,在使用elasticsearch head时,就不能直接访问9100了。

    按照官方文档的要求,https://github.com/mobz/elasticsearch-head#connecting-to-elasticsearch

    我们需要修改elasticsearch.yml配置文件。

    访问时,在url上需要添加用户名和密码:http://localhost:9100/?auth_user=elastic&auth_password=changeme

    但是我按照以上方法修改后,还是显示未连接,在github上有人碰到同样的问题:

    https://github.com/mobz/elasticsearch-head/issues/356

    https://github.com/mobz/elasticsearch-head/issues/368

    解决方法是:

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

    http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type


  • 相关阅读:
    Eclipse的安装
    为Eclipse绑定Tomcat
    CHIL-SQL-快速参考
    CHIL-SQL-FORMAT() 函数
    CHIL-SQL-NOW() 函数
    CHIL-SQL-ROUND() 函数
    CHIL-SQL-LEN() 函数
    CHIL-SQL-MID() 函数
    【PAT A1060】Are They Equal
    vector
  • 原文地址:https://www.cnblogs.com/hankuikui/p/7989927.html
Copyright © 2011-2022 走看看