一、添加清华源
cat>>/etc/yum.repos.d/elasticsearch-6.x.repo<<EOF [elasticsearch-6.x] name=Elasticsearch repository for 6.x packages baseurl=https://mirrors.tuna.tsinghua.edu.cn/elasticstack/yum/elastic-6.x/ gpgcheck=0 enabled=1 autorefresh=1 type=rpm-md EOF
###清理缓存
yum makecache
二、yum下载elk
yum install java-1.8.0-openjdk kibana logstash filebeat elasticsearch -y