安装 ES

  • sudo vi /etc/hosts

10.126.141.131 VM_141_131_centos txelk1
10.126.141.132 VM_141_132_centos txelk2
10.126.141.133 VM_141_133_centos txelk3

  • tar -zxvf elasticsearch-6.2.4.tar.gz -C /app/svr/
  • ln -s /app/svr/elasticsearch-6.2.4 /app/svr/es
  • mkdir -p /app/data/es && mkdir -p /app/log/es
  • cd /app/svr/es
  • vi config/jvm.options

-Xms4g
-Xmx4g

  • vi config/elasticsearch.yml

cluster.name: txELK
node.name: node-131 # with different name in each node [txelk1,txelk2,txelk3]#
network.host: 0.0.0.0
path.data: /app/data/es
path.logs: /app/log/es
discovery.zen.ping.unicast.hosts: ["txelk1", "txelk2","txelk3"]
gateway.recover_after_nodes: 3

  • sudo vi /etc/sysctl.conf
    vm.max_map_count=262144
  • sudo sysctl -p
  • bin/elasticsearch -d
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容