安装以下版本软件:
下载 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
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 的安装配置完成。
版权说明 : 本文为转载文章, 版权归原作者所有 版权申明
原文链接 : https://blog.csdn.net/zsx0728/article/details/125356085
内容来源于网络,如有侵权,请联系作者删除!