参考文档:
http://blog.itpub.net/25854343/viewspace-2640895/
https://blog.csdn.net/qq_40198004/article/details/89194129
#设置代理
#exportALL_PROXY=socks5://172.16.81.246:1080
#磁盘安装
#jdk安装
#git安装
yuminstall-ygit
#安装npm
#修改hostname
vim/etc/hosts
#{ip01}esnode1
#{ip02}esnode2
#{ip03}esnode3
120.26.72.233esnode1
121.40.209.201esnode2
120.27.194.232esnode3
#下载
wgethttps://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.7.1.tar.gz
tarxvfelasticsearch6.7.1.tar.gz
mvelasticsearch6.7.1/data/elasticsearch
#es配置模板根据esnode1不同集群机器修改相应的nodename
cp-ar/data/elasticsearch/config/elasticsearch.yml/data/elasticsearch.yml
cd/data