wiki-files/elk/kibana.md

61 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Kibana
description: Kibana部署
published: true
date: 2021-10-23T09:57:17.492Z
tags: elk
editor: markdown
dateCreated: 2021-10-23T09:42:58.525Z
---
版本与 elasticsearch 保持一致
# 部署
1. 修改配置文件
```bash
$ vim config/kibana.yml
```
修改内容
```yaml
# 访问端口默认5601
server.port: 5601
# 绑定的地址0.0.0.0表示任何本地地址默认localhost
server.host: "0.0.0.0"
# elasticsearch的地址
elasticsearch.hosts: ["http://192.168.0.156:9200"]
# 首页,默认值:.kibana
kibana.index: ".kibana"
# 管理员用户名默认值kibana_system
elasticsearch.username: "admin"
# 管理员密码默认值pass
elasticsearch.password: "admin"
```
启动
```bash
# 前台启动
$ ./bin/kibana
# 后台启动
$ ./bin/kibana &
# 后台启动,不输出内容
$ ./bin/kibana >/dev/null 2>&1 &
```
其他命令
```bash
# 帮助
$ ./bin/kibana -h
# 配置文件
$ ./bin/kibana -c 配置文件路径
# 退出
$ ./bin/kibana -q
# 日志文件
$ ./bin/kibana -l 日志文件路径
```
访问
```bash
curl http://localhost:5601
```