前两篇博客ES的部署和Logstash的推送
https://blog.csdn.net/lengyer/article/details/110919426
https://blog.csdn.net/lengyer/article/details/110946394
一、Kibana的下载和安装
下载:
https://artifacts.elastic.co/downloads/kibana/kibana-7.3.2-linux-x86_64.tar.gz
其他版本的kibana下载:
https://www.elastic.co/cn/downloads/past-releases#kibana
解压:
tar zxvf kibana-7.3.2-linux-x86_64.tar.gz
mv kibana-7.3.2-linux-x86_64 /etc/
修改配置文件:
vim /etc/kibana-7.3.2-linux-x86_64/config/kibana.yml
# 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.
server.host: "ip地址"
# Enables you to specify a path to mount Kibana at if you are running behind a proxy.
# Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
# from requests it receives, and to prevent a deprecation warning at startup.
# This setting cannot end in a slash.
#server.basePath: ""
# Specifies whether Kibana should rewrite requests that are prefixed with
# `server.basePath` or require that they are rewritten by your reverse proxy.
# This setting was effectively always `false` before Kibana 6.3 and will
# default to `true` starting in Kibana 7.0.
#server.rewriteBasePath: false
# The maximum payload size in bytes for incoming server requests.
#server.maxPayloadBytes: 1048576
# The Kibana server's name. This is used for display purposes.
server.name: "kibana" (kibana服务器名字)
# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["http://ES的IP地址:9200"]
文件最后加上:
i18n.locale: "zh-CN" (显示kibana为中文)
二、启动kibana
用root用户启动kibana
cd /etc/kibana-7.3.2-linux-x86_64
bin/kibana
可能会报错用下面的命令启动:
bin/kibana --allow-root
kibana启动成功后,先ctrl+c停止,用后台命令启动
bin/kibana --allow-root &
三、检查kibana
网页输入:kibana ip地址:5601
四、排错
一般报错都是kibana配置文件的书写有错误,请检查文件。