目录

目标

环境

步骤

注意事项


目标

下载并安装Kibana。


环境

  • Kibana 8.2.2
  • CentOS Linux release 7.8.2003 (Core)

步骤

第一步:去官网下载Linux版本的Kibana。

Past Releaseshttps://www.elastic.co/cn/downloads/past-releases#kibana第二步:上传到Linux服务器,我这里上传的位置是/opt目录。

第三步:解压该Kibana压缩包。

tar -zxvf kibana-8.2.2-linux-x86_64.tar.gz

第四步:去kibana目录下的config/kibana.yml配置相关参数。

server.port: 5601
server.host: "0.0.0.0"
i18n.locale: "zh-CN"

第五步:启动Kibana。

#root账号启动
./kibana --allow-root
#root账号后台启动
nohup ./kibana --allow-root &
#其他账号启动
./kibana
#其他账号后台启动
nohup ./kibana &

第六步:访问Kibana

http://192.168.120.157:5601/

第七步:访问Elasticsearch地址。


注意事项

事项一

kibana.yml文件可以配置elasticsearch连接地址,配置以后可以省去上述的第七步操作。

事项二

如果Elasticsearch没有受到基本身份验证的保护,即elasticsearch.yml配置xpack.security.enabled: false,则不需要输入密码验证;否则需要在kibana.yml配置文件中配置登录elasticsearch的账号密码,且账号不能为elastic,因为kibana不允许配置超级用户帐户。

elasticsearch.username: zhangsan
elasticsearch.password: 1YKEUXktQTEbiC6ApGHX

事项三

如果出现以下错误,则需要在kibana.yml配置登录elasticsearch的账号密码,或者去elasticsearch.yml设置xpack.security.enabled: false关闭身份验证。


Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: missing authentication credentials for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐