(需配合上一篇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
# 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
su elastic
cd kibana-8.5.0/bin
./kibana
su root
cd /lib/systemd/system/ ###配置服务的目录
vim /lib/systemd/system/kibana.service ###写入如下内容
[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
# 更新systemd配置文件
systemctl daemon-reload
# 使服务生效
systemctl enable kibana
# 启动服务
systemctl start kibana
# 查看服务状态
systemctl status kibana
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。