美文网首页运维的那点事
Elasticsearch出现{"error"

Elasticsearch出现{"error"

作者: 无字天书 | 来源:发表于2019-08-08 16:39 被阅读8次

    错误:

    [root@elk212 filebeat]# curl -XPUT 192.168.68.212:9200/_settings -d '{

    "index" : {

    "number_of_replicas" : 0

    }

    }'

    {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

    解决办法:

    [root@elk212 filebeat]# curl -H "Content-Type: application/json" -XPUT 192.168.68.212:9200/_settings -d '{

    "index" : {

    "number_of_replicas" : 0

    }

    }'

    结束语:


    更多精彩内容持续更新中,关注微信公众号,有你更精彩。

    相关文章

      网友评论

        本文标题:Elasticsearch出现{"error"

        本文链接:https://www.haomeiwen.com/subject/ogoxjctx.html