Ubuntu18.04【ELK+Nginx】Kibana的安装

前两篇博客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配置文件的书写有错误,请检查文件。

 

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值