安裝linux
cd /app wget https://artifacts.elastic.co/downloads/kibana/kibana-7.2.0-linux-x86_64.tar.gz tar -zxvf kibana-7.2.0-linux-x86_64.tar.gz mv kibana-7.2.0-linux-x86_64 kibana useradd kibana chown -R kibana:kibana kibana vim kibana/config/kibana.yml vim /etc/systemd/system/kibana.service systemctl daemon-reload systemctl enable kibana systemctl start kibana systemctl status kibana
kibana.ymlvim
打開以下配置 server.port: 5601 server.host: "0.0.0.0" elasticsearch.hosts: ["http://127.0.0.1:9200"]
kibana.serviceapp
[Unit] Description=Kibana StartLimitIntervalSec=30 StartLimitBurst=3 [Service] Environment=KIBANA_HOME=/app/kibana WorkingDirectory=/app/kibana # 指定用戶組 User=kibana Group=kibana ExecStart=/app/kibana/bin/kibana "-c /app/kibana/config/kibana.yml" Restart=always WorkingDirectory=/ [Install] WantedBy=multi-user.target
訪問elasticsearch
http://10.13.6.10:5601code
ES集羣只要在其中一臺安裝便可server