温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Elasticsearch x-pack安装配置

发布时间:2020-07-27 16:18:10 来源:网络 阅读:3247 作者:AT怪兽 栏目:大数据

官方文档:
https://www.elastic.co/guide/en/x-pack/5.0/installing-xpack.html

  1. 在集群中的每个节点上运行以下命令
    bin/elasticsearch-plugin install x-pack
  2. 确认给x-pack授予额外的权限
    Elasticsearch x-pack安装配置
  3. 修改elasticsearch配置elasticsearch.yml,允许x-pack自动创建索引:
    action.auto_create_index: .security,.monitoring,.watches,.triggered_watches,.watcher-history
  4. 启动elasticsearch
  5. 在kibana上安装x-pack
    bin/kibana-plugin install x-pack
  6. 启动kibana
  7. x-pack默认用户及密码:elastic/changeme
  8. 卸载:
    bin/elasticsearch-plugin remove x-pack
    bin/kibana-plugin remove x-pack
  9. 在elasticsearch.yml和kibana.yml上添加配置
    #x-pack
    xpack.security.enabled: true
    xpack.monitoring.enabled: true
    xpack.graph.enabled: true
    xpack.watcher.enabled: true(只在elasticsearch.yml上配置)
    xpack.reporting.enabled: true(只在kibana.yml上配置)
  10. 修改x-pack密码
    curl -XPUT -u elastic 'localhost:9200/_xpack/security/user/elastic/_password' -d '{
    "password" : "test123"
    }'
    确定后,输入原来的密码即可修改成功
向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI