官方docker安装kibana的链接
https://www.elastic.co/guide/en/kibana/current/docker.html
安装之前请参考如下链接
1) 安装docker
https://www.cnblogs.com/faberbeta/p/12853704.html
2) 安装docker-compose
https://www.cnblogs.com/faberbeta/p/12853753.html
mkdir /usr/local/kibana
cd /usr/local/kibana
docker-compose.yml文件
cat << EOF > docker-compose.yml version: '2' services: kibana: image: docker.elastic.co/kibana/kibana:7.9.0 container_name: kibana environment: - node.name=kibana volumes: - ./kibana.yml:/usr/share/kibana/config/kibana.yml ports: - 5601:5601 EOF
kibana.yml文件 172.17.0.1为docker的内网网关
cat << EOF > kibana.yml server.name: stg0.abcd.com server.host: "0" elasticsearch.hosts: [ "http://172.17.0.1:9200" ] monitoring.ui.container.elasticsearch.enabled: true EOF