zoukankan      html  css  js  c++  java
  • ES yaml安装

    version: '3'
    services:
    elasticsearch6_n0:
    image: elasticsearch:6.8.10
    container_name: elasticsearch6_n0
    privileged: true
    environment:
    - cluster.name=elasticsearch6-cluster
    - node.name=node0
    - node.master=true
    - node.data=true
    - bootstrap.memory_lock=true
    - http.cors.enabled=true
    - http.cors.allow-origin=*
    - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    - "discovery.zen.ping.unicast.hosts=elasticsearch6_n0,elasticsearch6_n1,elasticsearch6_n2"
    - "discovery.zen.minimum_master_nodes=2"
    ulimits:
    memlock:
    soft: -1
    hard: -1
    volumes:
    - ./data/node0:/usr/share/elasticsearch/data
    - ./logs/node0:/usr/share/elasticsearch/logs
    ports:
    - 9200:9200
    networks:
    - esnet
    elasticsearch6_n1:
    image: elasticsearch:6.8.10
    container_name: elasticsearch6_n1
    privileged: true
    environment:
    - cluster.name=elasticsearch6-cluster
    - node.name=node1
    - node.master=true
    - node.data=true
    - bootstrap.memory_lock=true
    - http.cors.enabled=true
    - http.cors.allow-origin=*
    - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    - "discovery.zen.ping.unicast.hosts=elasticsearch6_n0,elasticsearch6_n1,elasticsearch6_n2"
    - "discovery.zen.minimum_master_nodes=2"
    ulimits:
    memlock:
    soft: -1
    hard: -1
    volumes:
    - ./data/node1:/usr/share/elasticsearch/data
    - ./logs/node1:/usr/share/elasticsearch/logs
    ports:
    - 9201:9200
    networks:
    - esnet
    elasticsearch6_n2:
    image: elasticsearch:6.8.10
    container_name: elasticsearch6_n2
    privileged: true
    environment:
    - cluster.name=elasticsearch6-cluster
    - node.name=node1
    - node.master=true
    - node.data=true
    - bootstrap.memory_lock=true
    - http.cors.enabled=true
    - http.cors.allow-origin=*
    - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    - "discovery.zen.ping.unicast.hosts=elasticsearch6_n0,elasticsearch6_n1,elasticsearch6_n2"
    - "discovery.zen.minimum_master_nodes=2"
    ulimits:
    memlock:
    soft: -1
    hard: -1
    volumes:
    - ./data/node2:/usr/share/elasticsearch/data
    - ./logs/node2:/usr/share/elasticsearch/logs
    ports:
    - 9202:9200
    networks:
    - esnet
    kibana:
    image: kibana:6.8.10
    container_name: kibana6
    environment:
    - ELASTICSEARCH_HOSTS=http://elasticsearch6_n0:9200
    ports:
    - 5602:5601
    networks:
    - esnet

    networks:
    esnet:
    driver: bridge

    踩坑1:

     更改权限:

    踩坑2:

     

     

  • 相关阅读:
    tensorflow 1
    BAT变量中的百分号学习
    mysqldump: unknown option '--no-beep'
    mysql数据库文件默认保存目录(windows)
    mysql 直接从date 文件夹备份表,还原数据库之后提示 table doesn`t exist的原因和解决方法
    淘宝开源Web服务器Tengine安装教程
    Solr开发文档
    spring线程池配置
    Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
    Redis应用场景
  • 原文地址:https://www.cnblogs.com/to-here/p/14471000.html
Copyright © 2011-2022 走看看