启动ES 报错1
future versions of Elasticsearch will require Java 11; your Java version from [/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre] does not meet this requirement
解决办法:
使用ES自带JDK , 修改elasticsearch-env
启动ES 报错2
./elasticsearch-env: line 126: syntax error near unexpected token `<'
解决办法:
修改elasticsearch-env,
把 done < < (env) 改为 done <<< `env`