zoukankan      html  css  js  c++  java
  • 【ELK】之Centos6.9_x64安装elasticsearch6.2.1

    1、下载elasticsearch6.2.1

    wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.1.tar.gz

    2、解压安装

     

    3、启动

    因为es为防止远程执行一些脚本,所以启动需要建立一个新的grouop 和user

    直接进入bin目录启动

     

    ./elasticsearch -d  后台启动

    可能出现的问题,

    seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed

    bootstrap.memory_lock: false
    bootstrap.system_call_filter: false

    [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

    vim /etc/security/limits.conf,在文件最后加上

    * soft nproc  6000
    
    * hard nproc  6000
    
    * soft nofile 65536
    
    * hard nofile 65536

    [2]: max number of threads [1024] for user [es] is too low, increase to at least [4096]

    vim /etc/security/limits.d/90-nproc.conf

    *   soft    nproc     6000

    [3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] 

    vim  /etc/sysctl.conf ,在文件最后面加上

    vm.max_map_count=655360

    使用docker 启动 es6.6.2

    总是报下面错误,修改各种系统参数都不行

    使用如下命令即可。

    docker run --name es2 --ulimit nofile=65530:131072 -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "bootstrap.memory_lock=false" 
     -e "bootstrap.system_call_filter=false" -e "network.host=0.0.0.0" -e "http.cors.enabled=true" -e http.cors.allow-origin="*"  -p 9200:9200 -p 9300:9300 -d elasticsearch:6.6.2 
  • 相关阅读:
    Android 上传图片到服务器 okhttp一
    Kotlin 扩展——省略findViewById
    音频的播放一
    layui+ztree 树状下拉框
    Element里el-badge在el-tab里视图不被渲染问题
    linux之cat 操作
    cmd命令行中查看、修改、删除与添加环境变量
    cmd 文件/文件夹的一切操作
    操作
    11. 判断是给属性前加typeof 可以同时判断属性是否存在
  • 原文地址:https://www.cnblogs.com/gyjx2016/p/9130195.html
Copyright © 2011-2022 走看看