CentOS 8 上安装 ELK 8.7,真的那么简单吗?
摘要:之前装过一次 ELK 7.7,相比之下装 8.7可方便太多了~ CentOS版本 CentOS-8.5.2111-x86_64-dvd1 JAVA ELK会自己使用内置版本的JDK ElasticSearch 8.7.0 下载页面 Down
之前装过一次 ELK 7.7,相比之下装 8.7可方便太多了~
CentOS版本
CentOS-8.5.2111-x86_64-dvd1
JAVA
ELK会自己使用内置版本的JDK
ElasticSearch
8.7.0 下载页面 Download Elasticsearch | Elastic
Kinbana
8.7.0 下载地址 Download Kibana Free | Get Started Now | Elastic
Logstash
8.7.0 下载地址 Download Logstash Free | Get Started Now | Elastic
安装ElasticSearch8
加入资源
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
在/etc/yum.repos.d/位置创建文件elasticsearch.repo
cd /etc/yum.repos.d/
vim elasticsearch.repo
输入如下内容:
[elasticsearch]
name=Elasticsearch repository for 8.x packages
baseurl=https://artifacts.elastic.co/packages/8.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0
autorefresh=1
type=rpm-md
将镜像从mirror.centos.org更改为vault.centos.org (yum可用,则跳过)
进入到 yum 的 repos 目录
cd /etc/yum.repos.d/
修改 centos 文件内容
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
生成缓存更新
yum makecache
运行 yum update,并且重新安装 vim
yum update -y
yum -y install vim
执行 yum 命令完成 es 安装
yum install --enablerepo=elasticsearch elasticsearch
安装完记得保存如下信息,便于后续使用
Authentication and authorization are enabled.
TLS for the transport and HTTP layers is enabled and configured.
The generated password for the elastic built-in superuser is : xxxxxxxxx
If this node should join an existing cluster, you can reconfigure this with
'/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token <token-here>'
after creating an enrollment token on your existing cluster.
You can complete the following actions at any time:
Reset the password of the elastic built-in superuser with
'/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic'.
Generate an enrollment token for Kibana instances with
'/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana'.
Generate an enro
