使用 Curl 执行带有密码的 Elasticsearch _rebalance 请求
使用 Curl 执行带有密码的 POST 请求,用于 Elasticsearch 的 '_rebalance' 操作,可以使用以下命令:
curl -XPOST -u username:password http://localhost:9200/_rebalance
其中 'username' 是您的 Elasticsearch 用户名,'password' 是相应的密码。请将 'http://localhost:9200' 替换为您的 Elasticsearch 实例的正确地址和端口号。
请确保在执行此命令时,将用户名和密码替换为实际的凭据。
原文地址: https://www.cveoy.top/t/topic/pkne 著作权归作者所有。请勿转载和采集!