Linux 安装部署 Kibana 8.5.0

Kibana部署

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

  • 官网下载安装包,上传解压打开
 tar -xzf kibana-8.5.0-linux-x86_64.tar.gz
  • 分配文件夹权限
 chown -R elastic:elastic kibana-8.5.0
 chmod -R 777 kibana-8.5.0
  • 修改配置文件config/kibana.yml
 # 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
 # 切换到新用户,启动Kibana
 su elastic
 cd kibana-8.5.0/bin
 ./kibana
  • 浏览器打开kibana启动页面显示的链接,输入enrollment-token 初始化,输入账号密码登录,

    账号:elastic 密码:ES集群启动时生成的密码

  • 配置服务

 su root 
 cd /lib/systemd/system/      ###配置服务的目录
 vim /lib/systemd/system/kibana.service     ###写入如下内容
 [Unit]
 Description=kibana
 After=network.target
 ​
 [Service]
 Type=simple
 User=elastic
 ExecStart=/opt/kibana-8.5.0/bin/kibana
 PrivateTmp=true
 ​
 [Install]
 WantedBy=multi-user.target
  • 配置开机自启,并启动
 # 更新systemd配置文件
 systemctl daemon-reload
 # 使服务生效
 systemctl enable kibana
 # 启动服务 
 systemctl start kibana
 # 查看服务状态
 systemctl status kibana

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值