Chinaunix首页 | 论坛 | 博客
  • 博客访问: 53620
  • 博文数量: 19
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 141
  • 用 户 组: 普通用户
  • 注册时间: 2017-04-01 09:33
文章分类

全部博文(19)

文章存档

2017年(19)

我的朋友

分类: 大数据

2017-12-12 22:17:36

elasticsearch集群安装


#首先安装JDK(安装JDK1.8)
wget dachun.red/setup/jdk.sh
sh jdk.sh


每台服务器更改hosts
vim /etc/hosts


10.2.1.125 node1
10.2.1.126 node2
10.2.1.127 node3




cd /opt
wget
tar -zxvf elasticsearch-5.6.2.tar.gz 
rm -rf elasticsearch-5.6.2.tar.gz 


每台如此安装


修改每台配置文件


10.2.1.125 node1


vim /opt/elasticsearch-5.6.2/config/elasticsearch.yml


bootstrap.memory_lock: false
bootstrap.system_call_filter: false


cluster.name: dgg
node.name: node1


network.host: 10.2.1.125
http.port: 9200


http.cors.enabled: true
http.cors.allow-origin: "*"
node.master: true
node.data: true
#network.publish_host: 10.2.1.125
#transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["10.2.1.125"]




10.2.1.126 node2


vim /opt/elasticsearch-5.6.2/config/elasticsearch.yml


bootstrap.memory_lock: false
bootstrap.system_call_filter: false


cluster.name: dgg
node.name: node2


network.host: 10.2.1.126
http.port: 9200


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


node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["10.2.1.126"]


10.2.1.127 node3


vim /opt/elasticsearch-5.6.2/config/elasticsearch.yml


bootstrap.memory_lock: false
bootstrap.system_call_filter: false


cluster.name: dgg
node.name: node3


network.host: 10.2.1.127
http.port: 9200


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


node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["10.2.1.127"]


#启动每台(新建一个普通用户启动)
bin/elasticsearch -d



阅读(1131) | 评论(0) | 转发(0) |
0

上一篇:redis集群搭建

下一篇:rabbitmq集群安装

给主人留下些什么吧!~~