zoukankan      html  css  js  c++  java
  • linux搭建所遇到的坑elasticsearch-6.3.0

    注意: 不能使用主账号(root账号运行,必须使用子账号登录)

    第一步安装:: wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.0.tar.gz

    第二步安装:  tar -zxvf  elasticsearch-6.3.0.tar.gz -C /root/local

    第三步安装:  进入到/root/local/elasticsearch-6.3.0.tar.gz 

    第四步安装:  mv elasticsearch-6.3.0.tar.gz  elasticsearch6.3

    第五步安装: vim elasticsearch6.3/config/elasticsearch.yml

    第六步安装: 

    discovery.zen.ping.unicast.hosts: ["192.168.91.135:9305"]  搭建集群使用  保存

    第七步安装:  启动bin的./elasticsearch遇到的坑

    (1)   ERROR: bootstrap checks failed

    max number of threads [4096] for user [lish] likely too low, increase to at least [65536]

    max number of threads [3895] for user [elk] is too low, increase to at least [4096]

    解决方法: 

    (1) 修改  :  vi /etc/security/limits.conf 

           user是创建用户 

    useradd user--创建用户
    groupadd test --创建组
    gpasswd -a diyueyu test 将diyueyu添加到test组
    chmod 777 文件名称 给文件设置权限
    usermod -g 组名 用户名 --改变用户所在组
    chown -R 用户名:组别 文件名    --给用户添加文件权限
     
    (2) 修改  vi /etc/security/limits.d/20-nproc.conf
     
    (3) 修改  vi /etc/security/limits.d/20-nproc.conf

    (4) 需要修改 vi /etc/sysctl.conf

    vm.max_map_count=655360

    (5)错误5  system call filters failed to install; check the logs and fix your configuration or disable system c

    在yml的配置文件里加

    bootstrap.system_call_filter: false

     然后切换成你的子账号启动就可以了

    当一个人在成长过程中,慢慢的享受学习,那么这个人就在成长,在往自己目标的方向奔跑.
  • 相关阅读:
    linux学习之路第八天(linux文件权限详解)
    linux学习之路第八天(组管理和权限管理)
    python 多线程示例
    python scapy 网卡发包
    python scapy 网卡抓包
    python 返回数组的索引
    MPLS 网络中的 MTU
    mysql 导入导出sql文件
    linux 修改MTU值
    ovs 源mac, 目的src 互换
  • 原文地址:https://www.cnblogs.com/zique/p/9234474.html
Copyright © 2011-2022 走看看