es 集群 增加密码
ps aux | grep elasticsearch
修改 elasticsearch.yml
点击查看代码
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.license.self_generated.type: basic
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12(最好绝对路径)
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12(最好绝对路径)
增加密码后,查询要增加 -u 账号:密码
curl -u elastic:N_2022 -XGET 'http://10.102.124.88:9200/_cat/health?v'