**
centos7.6.1810之docker安装、设置kibana5.6.12
**
接 centos7.6.1810之docker安装elasticsearch后,安装kibana
1】拉取 kibana 镜像
docker pull kibana:5.6.12
2】
docker run --name mykibana -e ELASTICSEARCH_URL=http://192.168.92.132:9200 -p 5601:5601 -d kibana:5.6.12
其中 http://192.168.92.132:9200 需要 更换为 自己的 ES地址
运行成功
3】消除 Unable to fetch mapping. Do you have indices matching the pattern?
鉴于没有数据的问题,我们就填充数据
POST /zhonghua/heping/2
{
“name”: “meiting”,
“age”:6
}
3.1】回到 Management栏 把索引名 填入
3.2】点击 creat 后,如图
此时 就消除了 Unable to fetch mapping. Do you have indices matching the pattern? 这个问题。
蓝色区域的每个 栏目 也都可以使用了
4】设置 开机启动,在刚才的Xshell中 输入
docker ps
4.1】
docker update fa5bc9c018ed --restart=always
fa5bc9c018ed 这个更换为 自己运行中的kibana 的容器ID。
一切 设置好了,有个小点 需要注意,
如果 ES 和 kibana 没有设置 自动启动,那么 需要 先启动ES,然后 再 启动 kibana。不然 可能会 出现问题。