1.需要在配置文件中开启x-pack验证, 修改config目录下面的elasticsearch.yml文件,在里面添加如下内容,并重启.
xpack.security.enabled: true xpack.license.self_generated.type: basic xpack.security.transport.ssl.enabled: true
2,执行设置用户名和密码的命令,这里需要为4个用户分别设置密码,elastic, kibana, logstash_system,beats_system
3、修改es切片数命令:
curl -XPUT -H "Content-Type: application/json" 'http://127.0.0.1:9200/_cluster/settings' -d '{ "persistent": { "cluster": { "max_shards_per_node": 50000 } } }'