zoukankan      html  css  js  c++  java
  • elasticsearch+kibana

    docker pull elasticsearch
    docker images
    运行容器
    mkdir -p /opt/elasticsearch/config
    mkdir -p /opt/elasticsearch/data
    echo "http.host: 0.0.0.0" >> /opt/elasticsearch/config/elasticsearch.yml
    docker run --name elasticsearch -p 9200:9200 -p 9300:9300 -p 5601:5601 -e "discovery.type=single-node" -v /opt/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /opt/elasticsearch/data:/usr/share/elasticsearch/data -d elasticsearch
    docker pull kibana
    docker images
    运行容器
    docker run --name kibana -e ELASTICSEARCH_URL=http://127.0.0.1:9200 --net=container:elasticsearch -d kibana

    访问 http://192.168.6.77:5601

    elasticsearch.yml

    cluster.name: elasticsearch_cluster
    node.name: node-master
    node.master: true
    node.data: true
    http.port: 9200
    network.host: 0.0.0.0
    network.publish_host: 192.168.6.77
    discovery.zen.ping.unicast.hosts: ["192.168.6.77"]
    http.host: 0.0.0.0
    http.cors.enabled: true
    http.cors.allow-origin: "*"
    bootstrap.memory_lock: false
    bootstrap.system_call_filter: false
    # Uncomment the following lines for a production cluster deployment
    #transport.host: 0.0.0.0
    #discovery.zen.minimum_master_nodes: 1
  • 相关阅读:
    LeetCode之移除元素
    有被开心到hh(日常)
    交换排序
    插入排序
    顺序查找&折半查找
    C++之引用
    MySQL学习笔记
    C/C++程序编译过程
    计算机面试知识整合(更新中...)
    MFC之编辑框
  • 原文地址:https://www.cnblogs.com/fengwenzhee/p/10275543.html
Copyright © 2011-2022 走看看