修改 server.host: "127.0.0.1" # 注意这里为127.0.0.1而不是localhost。
如果是localhots 会报错 no resolver defined to resolve localhost, 然后页面展示 502 错误,暂时还不清楚为什么,改为127.0.0.1即可。
二、重启kibana
./kibana
log [13:31:03.516] [info][status][plugin:kibana] Status changed from uninitialized to green - Ready
log [13:31:03.564] [info][status][plugin:elasticsearch] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [13:31:03.592] [info][status][plugin:kbn_vislib_vis_types] Status changed from uninitialized to green - Ready
log [13:31:03.601] [info][status][plugin:markdown_vis] Status changed from uninitialized to green - Ready
log [13:31:03.617] [info][status][plugin:metric_vis] Status changed from uninitialized to green - Ready
log [13:31:03.624] [info][status][plugin:spyModes] Status changed from uninitialized to green - Ready
log [13:31:03.628] [info][status][plugin:elasticsearch] Status changed from yellow to green - Kibana index ready
log [13:31:03.631] [info][status][plugin:statusPage] Status changed from uninitialized to green - Ready
log [13:31:03.636] [info][status][plugin:table_vis] Status changed from uninitialized to green - Ready
log [13:31:03.663] [info][listening] Server running at http://127.0.0.1:5601