gpt4 book ai didi

elasticsearch - elasticsearch xpack-无法更改默认密码

转载 作者:行者123 更新时间:2023-12-03 00:06:52 26 4
gpt4 key购买 nike

我安装了用于Elasticsearch的Xpack,并尝试更改密码,如下所示:
https://www.elastic.co/guide/en/x-pack/current/security-getting-started.html

运行此:

curl -XPUT -u elastic localhost:9200/_xpack/security/user/elastic/_password -H Content-Type: application/json -d {"password" : "elasticpassword"}

让我:

{"error":{"root_cause":[{"type":"json_parse_exception","reason":"Unexpected character ('p' (code 112)): was expecting double-quote to start field name\n
at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@4a142671; line: 1, column: 3]"}],"type":"json_parse_exception","reason":"Unexpected character ('p' (code 112)): was expecting double-quote to start field name\n
at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@4a142671; line: 1, column: 3]"},"status":500}curl: (6) Could not resolve host: application
curl: (3) Bad URL, colon is first character
curl: (3) [globbing] unmatched close brace/bracket in column 16


或者,运行此命令:
curl -XPUT -u elastic "localhost:9200/_xpack/security/user/elastic/_password" -H "Content-Type: application/json -d {"password" : "elasticpassword"}

给我这个:

{"error":{"root_cause":[{"type":"not_x_content_exception","reason":"Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"}],"type":"not_x_content_exception","reason":"Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"},"status":500}


无论我使用的是“”还是“”的任何组合,我似乎都无法理解。请帮助!

谢谢

最佳答案

这是Windows用户的普遍问题。您可以改用Sense Chrome插件或Kibana开发工具。

curl -XPUT -u elastic localhost:9200/_xpack/security/user/elastic/_password -H "Content-Type: application/json" -d "{\"password\" : \"elasticpassword\"}"

请检查关于这种情况的 flex 开发人员响应:
https://discuss.elastic.co/t/index-a-new-document/35281/8

关于elasticsearch - elasticsearch xpack-无法更改默认密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44368938/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com