I use docker to install ES and Kibana, ES can be accessed normally,
{
"name" : "5f6114f4c963",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "e9a2-N-rRMmq_cpiaJqnBw",
"version" : {
"number" : "7.10.1",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "1c34507e66d7db1211f66f3513706fdf548736aa",
"build_date" : "2020-12-05T01:00:33.671820Z",
"build_snapshot" : false,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
but I get an error message when accessing Kibana,help!
Version: 7.10.1
Build: 36063
TypeError: Failed to fetch
at Fetch._callee3$ (http://159.75.71.68:5601/36063/bundles/core/core.entry.js:6:58583)
at l (http://159.75.71.68:5601/36063/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:380:1740520)
at Generator._invoke (http://159.75.71.68:5601/36063/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:380:1740273)
at forEach.e.<computed> [as throw] (http://159.75.71.68:5601/36063/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:380:1740877)
at fetch_asyncGeneratorStep (http://159.75.71.68:5601/36063/bundles/core/core.entry.js:6:52652)
at _throw (http://159.75.71.68:5601/36063/bundles/core/core.entry.js:6:53060)
docker network create --subnet=172.10.0.0/16 elk
docker run -d --name es --net elk -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --privileged=true -v $PWD/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v $PWD/elasticsearch/data/:/usr/share/elasticsearch/data elasticsearch:7.10.1
docker run -d --name kibana -p 5601:5601 -v $PWD/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml --net elk --privileged=true kibana:7.10.1
Comes with two YML configuration files:es and kibana
# es configuration
cluster.name: "docker-cluster"
network.host: 0.0.0.0
# kibana
# ** THIS IS AN AUTO-GENERATED FILE **
#
# Default Kibana configuration for docker target
server.name: kibana
server.host: "0"
# elasticsearch 地址
elasticsearch.hosts: [ "http://172.10.0.2:9200" ]
monitoring.ui.container.elasticsearch.enabled: true
# i18n.locale: zh-CN