前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Linux 安装部署 Kibana 8.5.0

Linux 安装部署 Kibana 8.5.0

原创
作者头像
是条鱼呀
发布2024-03-16 23:01:23
1400
发布2024-03-16 23:01:23

Kibana部署

(需配合上一篇elasticsearch安装部署)

  • 官网下载安装包,上传解压打开
代码语言:javascript
复制
 tar -xzf kibana-8.5.0-linux-x86_64.tar.gz
  • 分配文件夹权限
代码语言:javascript
复制
 chown -R elastic:elastic kibana-8.5.0
 chmod -R 777 kibana-8.5.0
  • 修改配置文件config/kibana.yml
代码语言:javascript
复制
 # For more configuration options see the configuration guide for Kibana in
 # https://www.elastic.co/guide/index.html
 ​
 # =================== System: Kibana Server ===================
 # Kibana is served by a back end server. This setting specifies the port to use.
 server.port: 5601
 ​
 # Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
 # The default is 'localhost', which usually means remote machines will not be able to connect.
 # To allow connections from remote users, set this parameter to a non-loopback address.
 # kibana所在服务器地址
 server.host: "xxx.xx.xx.xx"
 ​
 # Specifies the public URL at which Kibana is available for end users. If
 # `server.basePath` is configured this URL should end with the same basePath.
 # kibana暴露给外部的访问地址
 server.publicBaseUrl: "xxx.xx.xx.xx"
 ​
 # The maximum payload size in bytes for incoming server requests.
 #server.maxPayload: 1048576
 ​
 # The Kibana server's name. This is used for display purposes.
 #server.name: "your-hostname"
 ​
 # =================== System: Elasticsearch (Optional) ===================
 # These files are used to verify the identity of Kibana to Elasticsearch and are required when
 # xpack.security.http.ssl.client_authentication in Elasticsearch is set to required.
 # elasticsearch.ssl.certificate: /opt/elasticsearch-8.5.0/config/certs/ca/ca.crt
 # elasticsearch.ssl.key: /opt/elasticsearch-8.5.0/config/certs/ca/ca.key
 ​
 # Enables you to specify a path to the PEM file for the certificate
 # authority for your Elasticsearch instance.
 #elasticsearch.ssl.certificateAuthorities: [ "/path/to/your/CA.pem" ]
 ​
 # To disregard the validity of SSL certificates, change this setting's value to 'none'.
 elasticsearch.ssl.verificationMode: certificate
  • 运行kibana
代码语言:javascript
复制
 # 切换到新用户,启动Kibana
 su elastic
 cd kibana-8.5.0/bin
 ./kibana
  • 浏览器打开kibana启动页面显示的链接,输入enrollment-token 初始化,输入账号密码登录, 账号:elastic 密码:ES集群启动时生成的密码
  • 配置服务
代码语言:javascript
复制
 su root 
 cd /lib/systemd/system/      ###配置服务的目录
 vim /lib/systemd/system/kibana.service     ###写入如下内容
代码语言:javascript
复制
 [Unit]
 Description=kibana
 After=network.target
 ​
 [Service]
 Type=simple
 User=elastic
 # kibana 所在目录
 ExecStart=/opt/kibana-8.5.0/bin/kibana
 PrivateTmp=true
 ​
 [Install]
 WantedBy=multi-user.target
  • 配置开机自启,并启动
代码语言:javascript
复制
 # 更新systemd配置文件
 systemctl daemon-reload
 # 使服务生效
 systemctl enable kibana
 # 启动服务 
 systemctl start kibana
 # 查看服务状态
 systemctl status kibana

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Kibana部署
相关产品与服务
Elasticsearch Service
腾讯云 Elasticsearch Service(ES)是云端全托管海量数据检索分析服务,拥有高性能自研内核,集成X-Pack。ES 支持通过自治索引、存算分离、集群巡检等特性轻松管理集群,也支持免运维、自动弹性、按需使用的 Serverless 模式。使用 ES 您可以高效构建信息检索、日志分析、运维监控等服务,它独特的向量检索还可助您构建基于语义、图像的AI深度应用。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档