zoukankan      html  css  js  c++  java
  • elasticsearch 安装

    1. 解压安装包  

      链接:https://pan.baidu.com/s/17wziKqQJnkTxhMHdYY8_oA
      提取码:id17

    2. sudo vi /etc/security/limits.conf  添加如下配置:

    soft nofile 65536
    hard nofile 131072
    soft nproc 2048
    hard nproc 4096

    3. sudo vi /etc/security/limits.d/90-nproc.conf    添加如下内容

    soft nproc 2048

    4. sudo vi /etc/sysctl.conf   添加如下内容

    vm.max_map_count=655360

    5. 执行如下命令:

      sudo sysctl -p

    6. 进入 elasticsearch  的 config 目录下,  修改 elasticsearch.yml 文件

    cluster.name: es-cluster
    node.name: es-node
    path.data: /home/cmcc/server/elasticsearch/data 
    path.logs: /home/cmcc/server/elasticsearch/logs 
    bootstrap.memory_lock: false
    bootstrap.system_call_filter: false
    network.host: hadoop1
    discovery.zen.ping.unicast.hosts: ["hadoop1"]

    7. 进入 bin 目录  启动 elasticsearch

      ./elasticsearch -d  -d 表示 后台启动,   jps 可以查看

    8. 浏览器中输入  hadoop1:9200 可查看68.1.

  • 相关阅读:
    前缀和
    hdu6290奢侈的旅行
    make_pair
    New Year and Buggy Bot
    STL next_permutation 算法原理和自行实现
    前端面试题集合
    node设置cookie
    黑客与geek
    xss
    node async
  • 原文地址:https://www.cnblogs.com/redhat0019/p/11506905.html
Copyright © 2011-2022 走看看