搭建Docker 环境
yum list installed | grep docker
yum -y install docker
systemctl start docker
systemctl status docker
搭建 Kibana 环境
docker pull kibana:7.11.1
docker images
- 本地创建kibana.yml
- 修改创建的 kibana.yml
- 将
192.168.1.122
替换为服务器IP非容器IP并添加防火墙
#
# ** THIS IS AN AUTO-GENERATED FILE **
#
# Default Kibana configuration for docker target
server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://192.168.1.122:9200" ]
xpack.monitoring.ui.container.elasticsearch.enabled: true
-v
将本地的kibana.yml挂载到容器的kibana.yml-v 本地路径:容器路径
docker run -d --name=kibana --restart=always -p 5601:5601 -v C:/Users/dell/Desktop/dockerconf/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml docker.io/kibana:7.11.1
docker ps -a
- 浏览器访问
192.168.1.122
为启动服务IP地址,需要修改
http://192.168.1.122:5601/app/dev_tools#/console
至此