Linux安装Kibana

啥都不管,先安装Kibana

学什么东西都先二话不说的先来一个hello world
																	——鲁迅

本教程仅做个人工作笔记,可能不适用于他人的工作/学习

Kibana配合elasticsearch工作,博主主要用它来做一个可视化工具,另外也有elasticsearch-head可以做es的可视化

博主使用的es版本是6.6,所以使用的kibana也是6.6的版本,以下所有的操作都是基于该版本,可以自己选版本,下载地址https://www.elastic.co/cn/downloads/kibana

下载tar包后,解压

tar -xzvf xxx.tar

Kibana的配置十分简单,解压后进入到config文件夹下vi一下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: "0.0.0.0"

# 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: "your-hostname"

# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["http://localhost:9200"]

# 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"

# The default application to load.
#kibana.defaultAppId: "home"

# If your Elasticsearch is protected with basic authentication, these settings provide
# the username and password that the Kibana server uses to perform maintenance on the Kibana
# index at startup. Your Kibana users still need to authenticate with Elasticsearch, which
# is proxied through the Kibana server.
#elasticsearch.username: "user"
#elasticsearch.password: "pass"

# Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively.
# These settings enable SSL for outgoing requests from the Kibana server to the browser.
#server.ssl.enabled: false
#server.ssl.certificate: /path/to/your/server.crt
#server.ssl.key: /path/to/your/server.key

# Optional settings that provide the paths to the PEM-format SSL certificate and key files.
# These files validate that your Elasticsearch backend uses the same key files.
#elasticsearch.ssl.certificate: /path/to/your/client.crt
#elasticsearch.ssl.key: /path/to/your/client.key

# Optional setting that 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: full

# Time in milliseconds to wait for Elasticsearch to respond to pings. Defaults to the value of
# the elasticsearch.requestTimeout setting.
#elasticsearch.pingTimeout: 1500

# Time in milliseconds to wait for responses from the back end or Elasticsearch. This value
# must be a positive integer.
#elasticsearch.requestTimeout: 30000

# List of Kibana client-side headers to send to Elasticsearch. To send *no* client-side
# headers, set this value to [] (an empty list).
#elasticsearch.requestHeadersWhitelist: [ authorization ]

# Header names and values that are sent to Elasticsearch. Any custom headers cannot be overwritten
# by client-side headers, regardless of the elasticsearch.requestHeadersWhitelist configuration.
#elasticsearch.customHeaders: {}

# Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable.
#elasticsearch.shardTimeout: 30000

# Time in milliseconds to wait for Elasticsearch at Kibana startup before retrying.
#elasticsearch.startupTimeout: 5000

# Logs queries sent to Elasticsearch. Requires logging.verbose set to true.
#elasticsearch.logQueries: false

# Specifies the path where Kibana creates the process ID file.
#pid.file: /var/run/kibana.pid

# Enables you specify a file where Kibana stores log output.
#logging.dest: stdout

# Set the value of this setting to true to suppress all logging output.
#logging.silent: false

# Set the value of this setting to true to suppress all logging output other than error messages.
#logging.quiet: false

# Set the value of this setting to true to log all events, including system usage information
# and all requests.
#logging.verbose: false

# Set the interval in milliseconds to sample system and process performance
# metrics. Minimum is 100ms. Defaults to 5000.
#ops.interval: 5000

# Specifies locale to be used for all localizable strings, dates and number formats.
#i18n.locale: "en"

主要修改以下几项:

server.port: 5601
server.host: 0.0.0.0
server.name: anyway
elasticsearch.hosts: ["http://localhost:9200"]

其他的给默认值就可以(毕竟这只是一个hello world)
然后到bin文件下./kibana启动,如果使用后台启动则是nohup ./kibana &
使用浏览器ip:5061访问,出现UI页面即成功,安装kibana的关键是有正确安装的elasticsearch,可以看一下博主的另一篇简单笔记,elasticsearch的简单安装

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
安装Kibana是在Linux系统上配置和使用的一个常见任务。下面是一种简单的方法来安装Kibana: 1. 首先,确保你已经安装了适合你Linux系统的ElasticsearchKibanaElasticsearch的一个可视化工具。 2. 前往Kibana的官方网站(https://www.elastic.co/downloads/kibana)下载适用于你的Linux系统的Kibana安装包。你可以选择适合你的系统的.tar.gz或.rpm文件。 3. 解压或安装Kibana安装包。如果你下载的是.tar.gz文件,使用以下命令解压它: ``` tar -zxvf kibana-x.y.z-linux-x86_64.tar.gz ``` 如果你下载的是.rpm文件,使用以下命令安装它: ``` sudo rpm -i kibana-x.y.z-linux-x86_64.rpm ``` 4. 进入Kibana的主目录并编辑配置文件`kibana.yml`,这个文件位于`config`文件夹下。你可以使用任何你熟悉的文本编辑器打开它。 5. 在`kibana.yml`文件中,找到并修改`elasticsearch.hosts`选项,将其设置为Elasticsearch的主机地址和端口号。例如: ``` elasticsearch.hosts: ["http://localhost:9200"] ``` 6. 保存并关闭`kibana.yml`文件。 7. 启动Kibana服务。使用以下命令启动Kibana: ``` ./bin/kibana ``` 8. 在浏览器中打开`http://localhost:5601`,你将能够访问Kibana的Web界面。 希望这些步骤能帮助你成功安装和配置Kibana。如果你在安装过程中遇到任何问题,请参考Kibana的官方文档或寻求相关支持。 [2<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [linux 西班牙语乱码_我的Linux故事:用西班牙语涵盖开源](https://blog.csdn.net/cumo3681/article/details/107410014)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [Linux怎么安装中文输入法](https://blog.csdn.net/weixin_42305264/article/details/116799640)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值