当前位置:   article > 正文

docker安装Elasticsearch+Kibana+密码配置_xpack.monitoring.ui.container.elasticsearch.enable

xpack.monitoring.ui.container.elasticsearch.enabled: true

一、安装elasticsearch

1、拉取镜像

docker pull elasticsearch:7.12.1

2、构建容器&运行

docker run --name elasticsearch -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.12.1

3、修改配置

1、进入容器&打开文件

  1. docker exec -it es bash
  2. cd config
  3. vi elasticsearch.yml

2、编辑文件

  1. http.cors.enabled: true
  2. http.cors.allow-origin: "*"
  3. http.cors.allow-headers: Authorization
  4. xpack.security.enabled: true
  5. xpack.security.transport.ssl.enabled: true

3、重启es并设置密码

  1. cd bin
  2. elasticsearch-setup-passwords interactive
  3. // 输出
  4. Initiating the setup of passwords for reserved users elastic,apm_system,kibana,kibana_system,logstash_system,beats_system,remote_monitoring_user.
  5. You will be prompted to enter passwords as the process progresses.
  6. Please confirm
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/934595
推荐阅读
相关标签
  

闽ICP备14008679号