ELK部署

本文档详细介绍了如何在Linux CentOS环境下部署ELK(Elasticsearch、Logstash、Kibana)集群,包括环境准备、Elasticsearch集群的安装与配置,以及各个节点的状态检查。重点讲解了在node1节点上安装head、Bigdesk和cerebro插件的步骤,并提供了其他节点的配置示例。
摘要由CSDN通过智能技术生成

一、安装部署ELK

1.环境准备

主机名 IP地址 角色
node1 192.168.43.111 es01,redis01
node2 192.168.43.112 es02,redis02
node3 192.168.43.113 es03,kibana,nginx

2.设置主机名和host解析

三台主机都需配置
[root@node1 ~]# cat /etc/hosts
192.168.43.111 node1
192.168.43.112 node2
192.168.43.113 node3

3.时间同步

三台主机都需配置
[root@node1 ~]# yum install chrony
[root@node1 ~]# vim /etc/chrony.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server ntp1.aliyun.com iburst

开机自起
[root@node1 ~]# systemctl enable --now chronyd

查看
[root@node1 ~]# chronyc sources
210 Number of sources = 1
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^* 120.25.115.20                 2   6    17    38   -313us[+1107us] +/-   29ms

4.部署jdk

[root@node1 ~]# ll
total 124452
-rw-------. 1 root root      1450 Jul 21 21:15 anaconda-ks.cfg
-rw-r--r--  1 root root 127431820 Aug  2 16:22 jdk-8u261-linux-x64.rpm

发送给node2,node3
[root@node1 ~]# scp jdk-8u261-linux-x64.rpm node2:/root
The authenticity of host 'node2 (192.168.43.112)' can't be established.
ECDSA key fingerprint is SHA256:X/a9lO6iG4mWSFRUk+rb+bkBMiPOES32ySUKJaWcejM.
ECDSA key fingerprint is MD5:d0:c5:f7:5a:26:33:d3:bb:a0:c1:f9:5c:57:68:00:29.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node2,192.168.43.112' (ECDSA) to the list of known hosts.
root@node2's password: 
jdk-8u261-linux-x64.rpm                                                                                           100%  122MB  98.8MB/s   00:01    
[root@node1 ~]# scp jdk-8u261-linux-x64.rpm node3:/root
The authenticity of host 'node3 (192.168.43.113)' can't be established.
ECDSA key fingerprint is SHA256:X/a9lO6iG4mWSFRUk+rb+bkBMiPOES32ySUKJaWcejM.
ECDSA key fingerprint is MD5:d0:c5:f7:5a:26:33:d3:bb:a0:c1:f9:5c:57:68:00:29.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node3,192.
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值