版本: ES 7.7, kibana 7.7, window10

修改ES绑定的ip

ES默认使用localhost访问, 不能用本机ip地址. 现在需要修改配置, 以便让小伙伴也可以访问.

配置文件: config/elasticsearch.yml

修改 network.host:

network.host: 0.0.0.0

然后启动时出现错误:

ERROR: [1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

解决办法:

开放"cluster.initial_master_nodes"设置:

ok

修改kibana绑定的ip

配置文件: /config/kibana.yml

修改 server.hostelasticsearch.hosts(因为前面修改了ES的host) 即可.

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐