centos7中安装kibana
es安装参考:http://www.duozhi.online/2023/10/20/centos7%e4%b8%ades%e5%ae%89%e8%a3%85/
1.节点信息
192.168.0.218
2.关闭防火墙
[root@SEARCH-218 ~]# systemctl disable firewalld&&systemctl stop firewalld&&systemctl daemon-reload
3.yum 源配置
[root@SEARCH-218 ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
[root@SEARCH-218 ~]#cd /etc/yum.repos.d&&wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@SEARCH-218 ~]#wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
4.时间同步
[root@SEARCH-218 ~]# yum install chrony -y
[root@MES-203 ansible]# systemctl enable chronyd&&systemctl start chronyd&&chronyc sources
5.安装kibana
下载安装包并解压
curl -O https://artifacts.elastic.co/downloads/kibana/kibana-7.10.2-linux-x86_64.tar.gz
tar -xvf kibana-7.10.1-linux-x86_64.tar.gz
mv kibana-7.10.1-linux-x86_64 kibana
添加用户
useradd elasticsearch
修改配置(由于es配置了密码,所以这里要配置下密码)
[root@SEARCH-218 config]# cat kibana.yml
server.port: 5601
server.host: "0.0.0.0"
elasticsearch.hosts: ["http://192.168.0.215:9200", "http://192.168.0.216:9200", "http://192.168.0.217:9200"]
kibana.index: ".kibana"
i18n.locale: "zh-CN"
elasticsearch.username: "kibana"
elasticsearch.password: "EnsrtwPFPaOnCARPVzBT"
加入systemctl
[root@SEARCH-218 config]# cat /etc/systemd/system/kibana.service
[Unit]
Description=kibana
[Service]
User=elasticsearch
ExecStart=/home/kibana/kibana/bin/kibana
[Install]
WantedBy=multi-user.target
设置开机启动并启动
systemctl enable kibana&&systemctl start kibana
查看状态

访问验证
http://192.168.0.218:5601/
用户名和密码在 es文档中
elastic = tPtXYtJu3NJJSX5lenaq
kibana = EnsrtwPFPaOnCARPVzBT
参考文献
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。
转载请注明来源:centos7中安装kibana - 多知在线