Blame view

docs/ES/ES_8.18/2_kibana安装.md 1.21 KB
648cb4c2   tangwang   ES docs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  

  

  

  

  

  ## 1. yum安装

  添加yum仓库。

  Kibana通常不是yum默认仓库的一部分,因此需要添加 Elastic 仓库::

  ```shell

  

  导入 Elastic 签名密钥:

  sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

  

  添加 Elastic 仓库:

  sudo tee /etc/yum.repos.d/elastic.repo <<EOF

  [elastic-8.x]

  name=Elastic repository for 8.x packages

  baseurl=https://artifacts.elastic.co/packages/8.x/yum

  gpgcheck=1

  gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch

  enabled=1

  autorefresh=1

  type=rpm-md

  EOF

  ```

  然后可以安装 (版本要匹配,否则后面会有错误)

  ```shell

  sudo yum install -y kibana-8.18.0

  ```

  

  ## 2. 修改配置文件

  ```shell

  # 使用yum安装的kibana,默认安装的主目录在/usr/share/kibana中。kibana配置文件的位置为/etc/kibana/kibana.yml。

  vim /etc/kibana/kibana.yml

  # 补充内容:

  server.host: "0.0.0.0"

  elasticsearch.hosts: ["http://ip:9200"]

  i18n.locale: "zh-CN"

  ```

  ## 3. 启动

  ```shell

  # 启动kibana

  systemctl start kibana

  systemctl status kibana

  # 设置开机自启动

  systemctl enable kibana

  ```

  

  在阿里云上面配置允许访问5601端口后,可以浏览器打开:

  http://120.76.41.98:5601/