surroundings:
system: CentOS Linux release 7.7.1908
elasticsearch: elasticsearch-7.5.1-1.x86_64
kibana: kibana-7.5.1-1.x86_64
filebeat: filebeat-7.5.1-1.x86_64
1. EFK configuration of yum environment
Create a source file yum
vim efk.repo:
[elasticsearch] name=Elasticsearch repository for 7.x packages baseurl=https://artifacts.elastic.co/packages/7.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=0 autorefresh=1 type=rpm-md [elastic-7.x] name=Elastic repository for 7.x packages baseurl=https://artifacts.elastic.co/packages/7.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md [kibana-7.x] name=Kibana repository for 7.x packages baseurl=https://artifacts.elastic.co/packages/7.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md
2. Install EFK
1 yum install --enablerepo=elasticsearch elasticsearch 2 yum install kibana 3 yum install filebeat
3. Configure EFK
a. Configure elasticsearch
vim /etc/elasticsearch/elasticsearch.yml
b. arrangement kibana
vim /etc/kibana/kibana.yml
c. Configure filebeat
vim /etc/filebeat/filebeat.yml
Start EFK Service
systemctl start elasticsearch.service
If the startup problem elasticsearch about, click on: https://blog.51cto.com/liuxiaolan/2463905
systemctl start kibana.service
systemctl start filebeat.service