美文网首页
ELK搭建-------ELASTICSEARCH

ELK搭建-------ELASTICSEARCH

作者: Poseidon_Wang | 来源:发表于2019-01-02 21:40 被阅读9次

    1.下载官方最新包
    https://www.elastic.co/downloads
    2.解压
    主要文件介绍
    config目录
    -elasticsearch.yml(主配置文件,配置端口,node名,cluster等)
    -jvm.options(设置应用es占用内存设置)
    -log4j2.properties(日志设置)

    elasticsearch.yml
    cluster.name: 集群名称
    node.name: 节点名称
    path.data: 数据目录
    path.logs: 日志目录
    network.host: 网络主机地址
    http.port: 9200 端口
    discovery.zen.ping.unicast.hosts: ["node"] 节点发现
    discovery.zen.minimum_master_nodes: 2 节点个数(防止脑裂,必须集群数一半+1)

    1.预先设置ulimit默认1024(哈看ulimit -a)修改/etc/security/limit.conf

    • soft nofile 65536
    • hard nofile 65536
    • soft nproc 65536
    • hard nproc 65536
      2.vm.max_map_count is too low
      vi /etc/sysctl.conf
      vm.max_map_count=655360

    相关文章

      网友评论

          本文标题:ELK搭建-------ELASTICSEARCH

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