elasticsearch开启basicauth认证

配置文件

cluster.name: test
xpack.security.enabled: true
discovery.type: single-node
node.name: node1
path.data: /data/
path.logs: /usr/local/es/logs
bootstrap.memory_lock: true
network.host: 0.0.0.0
http.port: 9200

启动服务

/usr/local/es/bin/elasticsearch -d

设置密码

/usr/local/es/bin/elasticsearch-setup-passwords interactive

标签: elasticsearch

评论已关闭