Linux下使用docker安装kibana
作者:互联网
1. 拉取镜像
docker pull kibana:7.5.1
2. 创建挂载目录文件
mkdir -p /data/elk7/kibana/config/
vi /data/elk7/kibana/config/kibana.yml
内容如下:
server.name: kibana
server.host: “0”
elasticsearch.hosts: [ “http://192.168.31.190:9200” ]
xpack.monitoring.ui.container.elasticsearch.enabled: true
注意:请根据实际情况,修改elasticsearch地址。
3. 启动容器
docker run -d --name=kibana --restart=always -p 5601:5601 -v /data/elk7/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml kibana:7.5.1
4. 查看日志
docker logs -f kibana
等待30秒,如果出现以下信息,说明启动成功了。
{"type":"log","@timestamp":"2020-08-27T03:00:28Z","tags":["listening","info"],"pid":6,"message":"Server running at http://0:5601"}
{"type":"log","@timestamp":"2020-08-27T03:00:28Z","tags":["info","http","server","Kibana"],"pid":6,"message":"http server running at http://0:5601"}
5. 访问页面
http://192.168.31.190:5601/
标签:http,kibana,server,5601,Linux,docker,config 来源: https://blog.csdn.net/weixin_42361442/article/details/121511907