【问题标题】:Elasticsearch x-pack is enabled head can't connectElasticsearch x-pack 已启用 head can't connect
【发布时间】:2017-03-24 04:43:32
【问题描述】:

我可以在没有 x-pack 的情况下使用 head-plugin 连接到 xx.xx.xx.xx:9200。

当我的 elasticsearch 5.2.0 x-pack 启用时 xx.xx.xx.xx:9200 需要登录才能连接到 es , 但是head 9100无法连接到xx.xx.xx.xx:9200,在哪里输入x-pack的用户名和密码。

我尝试了 elasticsearch.yml 中的设置

http.cors.allow-headers: Authorization

并使用url连接es

http://xx.xx.xx.xx:9200/es-head/?auth_user=elastic&auth_password=changeme

但它不起作用。我收到了这条回复消息..

"missing authentication token for REST request [/es-head/?auth_user=elastic&auth_password=changeme]"

我的版本--5.2.0

【问题讨论】:

    标签: elastic-stack xpack


    【解决方案1】:

    我做到了。

    我用的时候

    http://xx.xx.xx.xx:9200/es-head/?auth_user=elastic&auth_password=changeme
    

    我收到了消息

    Cannot GET /es-pack/
    

    所以我改成

    http://xx.xx.xx.xx:9200/?auth_user=elastic&auth_password=changeme
    

    我想知道为什么?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-09-06
      • 1970-01-01
      • 2018-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多