美文网首页
elasticsearch install

elasticsearch install

作者: 恶魔幻心 | 来源:发表于2018-12-14 18:31 被阅读0次

    1、sudo yum install elasticsearch

    2、wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.3.rpm

    3、sudo rpm --install elasticsearch-6.1.3.rpm

    4、开机自启动 sudo chkconfig --add elasticsearch

    5、 sudo -i service elasticsearch start

    sudo -i service elasticsearch stop

    log files

    /var/log/elasticsearch/

    config

    /etc/elasticsearch

    目录

    /usr/share/elasticsearch/

    Changed password for user kibana

    PASSWORD kibana = nn+IjO=r*!9gW3xizwx_

    Changed password for user logstash_system

    PASSWORD logstash_system = O9%mTUBGZo7uGpd^~7j2

    Changed password for user elastic

    PASSWORD elastic = p4Ug-cUE7pQx_SrcViYc

    附:

    1、修改权限

    chown elasticsearch /var/log/elasticsearch/elasticsearch_access.log

    chgrp elasticsearch /var/log/elasticsearch/elasticsearch_access.log

    2、max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

    vi /etc/security/limits.conf

    3、max number of threads [1024] for user [elasticsearch] is too low, increase to at least [4096]

    vi 90-nproc.conf

    4、system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

    Centos6不支持SecComp,而ES5.2.0默认bootstrap.system_call_filter为true

    5、max file descriptors [65535] for elasticsearch process likely too low, increase to at least [65536]

    elasticsearch hard nofile 65536 

    elasticsearch soft nofile 65536 

    禁用:在elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在Memory下面:

    bootstrap.memory_lock: false

    bootstrap.system_call_filter: false

    6、外网访问9200端口

    vi /etc/config/elasticsearch.yml

    network.host: 0.0.0.0

    相关文章

      网友评论

          本文标题:elasticsearch install

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