美文网首页
elasticsearch 6.3.0 启用x-pack

elasticsearch 6.3.0 启用x-pack

作者: 瞿大官人 | 来源:发表于2018-09-02 13:07 被阅读0次

    elasticsearch 6.3.0已经整合了x-pack因此只要启用就可了,下面是启用步骤

    启用trial license(30天试用)

    curl -H "Content-Type:application/json" -XPOST  http://localhost:9200/_xpack/license/start_trial?acknowledge=true
    
    

    配置elasitcsearch.yml

    xpack.security.enabled: true
    

    启动elasticsearch

    ./bin/elasticsearch
    

    设置密码

    li@li-ok:~/elasticsearch-6.3.0$ ./bin/elasticsearch-setup-passwords interactive
    Picked up _JAVA_OPTIONS:   -Dawt.useSystemAAFontSettings=gasp
    Picked up _JAVA_OPTIONS:   -Dawt.useSystemAAFontSettings=gasp
    Initiating the setup of passwords for reserved users elastic,kibana,logstash_system,beats_system.
    You will be prompted to enter passwords as the process progresses.
    Please confirm that you would like to continue [y/N]y
    
    
    Enter password for [elastic]: 
    Reenter password for [elastic]: 
    Enter password for [kibana]: 
    Reenter password for [kibana]: 
    Enter password for [logstash_system]: 
    Reenter password for [logstash_system]: 
    Enter password for [beats_system]: 
    Reenter password for [beats_system]:
    

    在kibana中配置elasticsearch的用户信息

    在kibana.yml中配置,如果没有安装kibana可以忽略

    elasticsearch.username: "elastic"
    elasticsearch.password: 之前设置的elastic的密码
    

    重新启动elasticsearch、kibana

    启动完成之后访问kibana


    深度截图_选择区域_20180902130655.png

    相关文章

      网友评论

          本文标题:elasticsearch 6.3.0 启用x-pack

          本文链接:https://www.haomeiwen.com/subject/joqmwftx.html