【elasticsearch】linux下部署elasticsearch集群(一)

前言

步骤

https://blog.csdn.net/hushukang/article/details/83880003
注意,这里要下载6.8的。因为7.x的需要jdk11

修改内存

https://www.cnblogs.com/jhtian/p/12664890.html
修改es config下的jvm配置文件
vim jvm.options
在这里插入图片描述

新建用户

https://www.jianshu.com/p/b89b1db2d65d
赋予权限:chown -R 用户名:用户名 目录名

Ubuntu elasticsearch max virtual memory areas vm.max_map_count [65530]

https://blog.csdn.net/jiankunking/article/details/65448030

es集群配置

https://www.cnblogs.com/minseo/p/10948669.html
如果是测试环境,两台在同一个服务器

#集群名需要和node-1一致
cluster.name: my-es
node.name: node-1
path.data: /opt/elk/elasticsearch-7.0.0_1/data
path.logs: /opt/elk/elasticsearch-7.0.0_1/logs
network.host: 0.0.0.0
http.port: 9200
#discovery.seed_hosts: ["127.0.0.1"]
cluster.initial_master_nodes: ["node-1"]
http.cors.enabled: true
http.cors.allow-origin: "*"



#集群名需要和node-1一致
cluster.name: my-es
#node名
node.name: node-2
path.data: /opt/elk/elasticsearch-7.0.0_2/data
path.logs: /opt/elk/elasticsearch-7.0.0_2/logs
network.host: 0.0.0.0
http.port: 9201
#集群中两个节点的IP
discovery.seed_hosts: ["127.0.0.1"]
cluster.initial_master_nodes: ["node-1"]
http.cors.enabled: true
http.cors.allow-origin: "*"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值