配置好环境变量ES_HOME:D:ELKelasticsearch-7.2.0。ES_TMPDIR:D:ELKestmpdir。如果要安装Logstash还需要配置JDK环境变量. JAVA_HOME:D:ELKelasticsearch-7.2.0jdk
1、配置network.host: 0.0.0.0 后,服务起不来。
查看log,是否报错
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
解决方法:
elasticsearch.yml加上
cluster.initial_master_nodes: ["节点名字"]
2、indexname必须为小写字母
3、报错:Exception java.lang.SecurityException: Security misconfiguration: cannot access java.io.tmpdir
解决:elasticsearch.yml配置xpack.ml.enabled: false