首页 > 其他 > 详细

ElasticSearch部署

时间:2019-10-10 19:55:23      阅读:91      评论:0      收藏:0      [点我收藏+]

内核参数

  1. 最大文件打开数

    vim /etc/security/limits.conf
       midware soft nofile 65536
       midware hard nofile 65536
    su - midware
    ulimit -n
  2. 虚拟映射内存

    sysctl -w vm.max_map_count=262144
    vim /etc/sysctl.conf
       vm.max_map_count=262144
    sysctl vm.max_map_count

配置文件

  1. elasticsearch.yml

    cluster.name: mwops-elasticsearch
       node.name: node1
       path.data: /data/es/data/node1
       path.logs: /data/es/logs/node1
    network.host: 0.0.0.0
    http.port: 9200
    gateway.recover_after_nodes: 1
  2. jvm.options

    -Xms6g
    -Xmx6g

    half of available memory

启动命令

  1. 后台启动

    ./bin/elasticsearch -d

ElasticSearch部署

原文:https://www.cnblogs.com/Peter2014/p/11650033.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!