elasticsearch-6.4.0集群搭建

前言
部署elasticsearch(以下简称es)需要java环境,且不可以在root环境下运。本篇在java-1.8.0_121环境下部署(1.8其它版本亦可),并在es用户下执行。对linux用户概念不清楚的小伙伴可参考https://blog.csdn.net/qq_29940863/article/details/86027879。另外,es的配置: 有可能需要root权限。
1.下载es安装包
https://www.elastic.co/downloads/past-releases
选择想要的版本,本篇使用的版本是6.4.0。
2.es的安装与配置
上传elasticsearch-6.4.0.tar.gz包到指定服务器
解压安装包
tar -zxvf elasticsearch-6.4.0.tar.gz
cd elasticsearch-6.4.0
vim config/elasticsearch.yml
       node.name: node-15
       path.data: /home/es/esdata
       path.logs: /home/es/eslog
       network.host: ***.15
       http.port: 9200
       discovery.zen.ping.unicast.hosts: ["***.15", "***.14", "***.13"]
       discovery.zen.minimum_master_nodes: 1
       node.master: true
       node.data: true

       http.cors.enabled: true
       http.cors.allow-origin: "*"

       bootstrap.memory_lock: false
       bootstrap.system_call_filter: false

未完待续

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值