elastic search windows下启动黑屏

elasticsearch.bat启动时黑屏问题解决

现象:elasticsearch.bat启动时快速黑屏一下,就退出

  1. 确保JAVA_HOME的环境变量已经配置了
  2. 在文件夹中shift+右箭,在菜单中打开power shell命令行工具,执行 elasticserch.bat,查看有什么异常日志,再针对性解决。比如@echo: command not found
  3. 检查JDK安装路径上是不是有一些特殊字符。避免有括号,中文
  4. 检查elastic search安装路径是不是有一些特殊字符。避免有括号,中文
    经过上述方法,一般都能过解决98%的问题。如果还有2%的剩余问题,欢迎补充

elasticsearch.bat启动时异常解决

JVM is using the client VM [Java HotSpot(TM) Client VM] but should be using a server VM for the best performance

修改jdk对应目录里jdk1.8.0_131\jre\lib\i386的jvm.cfg
将-server KNOWN 这一行提前到最前面。这个是控制加载jvm顺序的,谁排在第一位谁就是默认的jvm

 system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

修改elasticsearch的安装目录config中的文件elasticsearch.yml,增加

bootstrap.system_call_filter: false

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: ["node-1"]

你可能感兴趣的:(elastic search windows下启动黑屏)