Linux 下安装 Elasticsearch 8 和 Kibana 8

安装以下版本软件:

  • Elasticsearch 8.2.3
  • Kibana 8.2.3
安装 Elasticsearch

    下载 rpm 包并安装:

// 下载
# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.2.3-x86_64.rpm
// 安装
# rpm -ivh elasticsearch-8.2.3-x86_64.rpm 
准备中...                          ################################# [100%]
Creating elasticsearch group... OK
Creating elasticsearch user... OK
正在升级/安装...
   1:elasticsearch-0:8.2.3-1          ################################# [100%]
--------------------------- Security autoconfiguration information ------------------------------

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 : 5gCSq67v=vhdM7N6Yrak

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 enrollment token for Elasticsearch nodes with 
'/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node'.

-------------------------------------------------------------------------------------------------
### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd
 sudo systemctl daemon-reload
 sudo systemctl enable elasticsearch.service
### You can start elasticsearch service by executing
 sudo systemctl start elasticsearch.service

    从安装过程可以看到,elastic 超级账户的密码是 5gCSq67v=vhdM7N6Yrak
    配置文件不做调整,直接启动 elasticsearch,并且登录验证。

在这里插入图片描述

安装 Kibana

    接着安装 Kibana

wget https://artifacts.elastic.co/downloads/kibana/kibana-8.2.3-x86_64.rpm
rpm -ivh kibana-8.2.3-x86_64.rpm

    Kibana配置文件可以不做修改,为了便于操作,能从其他主机访问,本人修改了 server.host

server.host: "0.0.0.0"

    启动Kibana,查询到 Kibana 配置网址,其中 code 取值每次安装都不同:

在这里插入图片描述

    打开浏览器界面进行 Kibana 与 Elasticsearch 的连接配置:

在这里插入图片描述

    页面需要输入 Token,使用以下命令生成:

/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana

在这里插入图片描述

    将 Token 复制粘贴:

在这里插入图片描述

    进入下一页,需要输入验证码。使用以下命令生成验证码:

/usr/share/kibana/bin/kibana-verification-code

在这里插入图片描述

    输入验证码。最后,Elasticsearch 和 Kibana 的安装配置完成。

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值