一、 从elk官网下载与es匹配的版本。版本不一至可能不能使用,下载.tar.gz格式的包
二、解压缩、安装与配置
tar -zxvf kibana-7.8.0-linux-x86_64.tar.gz
mv kibana-xxx /usr/local/kibana //移动并重命令到/usr/local/目录下
vim /usr/local/kibana/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: "192.168.245.128" //当前主机ip地址
....
# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["http://localhost:9200"] //指定es的ip与端口
# When this setting's value is true Kibana uses the hostname specified in the server.host
# setting. When the value of this setting is false, Kibana uses the hostname of the host
# that connects to this Kibana instance.
#elasticsearch.preserveHost: true
# Kibana uses an index in Elasticsearch to store saved searches, visualizations and
# dashboards. Kibana creates a new index if the index doesn't already exist.
kibana.index: ".kibana"
i18n.locale: "zh-CN" //设置中文
三、 配置firewalld
firewall-cmd --zone=public --add-port=5601/tcp --permanent
firewall-cmd --reload
四、访问
在浏览器访问http://192.168.245.128:5601