在使用Kibana连接ElasticSearch时,在ElasticSearch已经启动的情况下,再去启动Kibana,结果报错:
[error][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. connect EConNREFUSED 127.0.0.1:9200
启动Kibana,我是已经将Kibana.yml中的elasticsearch.hosts修改为:["http://127.0.0.1:9200"],使用的是localhost,如下图所示。
其中elasticsearch中的elasticsearch.yml中的network.host也是使用的是localhost。
最后,才发现不能使用localhost,需要使用私有IP。将Kibana.yml中的elasticsearch.hosts以及elasticsearch.yml中的network.host、discovery.seed_hosts都使用私有IP后,问题解决,其中我的私有IP是192.168.0.101如下图所示。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)