efk日志系统安装
YUM源配置: rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch cat > /etc/yum.repos.d/elk.repo << EOF [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 EOF ======================================== 安装方式: yum安装,指定版本 yum install -y elasticsearch-7.4.2-1.x86_64 filebeat-7.4.2-1.x86_64 kibana-7.4.2-1.x86_64 logstash-7.4.2-1.noarch
启动es
chown -R elasticsearch:elasticsearch /etc/elasticsearch/
chown -R elasticsearch:elasticsearch /var/lib/elasticsearch/
chown -R elasticsearch:elasticsearch /var/log/elasticsearch/
#修改 cluster.initial_master_nodes 和 network.host cat /etc/elasticsearch/elasticsearch.yml systemctl start elasticsearch
通过ip + port 9022 访问
浙公网安备 33010602011771号