# 修改 elastic 密码,只需要修改其中一台集群其他服务器不需要重复执行
-u: 输入现在的用户名密码  -d : 新密码
# curl -H "Content-Type:application/json" -XPOST -u elastic:now_password 'http://10.10.17.19:9200/_xpack/security/user/elastic/_password' -d '{ "password" : "new_password" }'

# 修改密码后的测试,简单搜索

# curl -u elastic:new_password http://10.10.17.21:9200/_search?pretty


# 简单的搜索测试
curl -XGET "http://elastic:new_password@10.10.17.21:9200/channel_youtube/_search?pretty" -H 'Content-Type: application/json' -d '
{
    "query":{
        "term":{"channel_id":"new_password"}
    }
}
'

相关文章:

  • 2021-10-01
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
猜你喜欢
  • 2021-12-30
  • 2021-12-06
  • 2021-05-19
  • 2021-12-03
  • 2021-12-16
  • 2022-02-10
相关资源
相似解决方案